Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -73,10 +73,10 @@ def process_pdf(uploaded_file, hf_model_name):
|
|
73 |
iface = gr.Interface(
|
74 |
fn=process_pdf,
|
75 |
inputs=[
|
76 |
-
gr.
|
77 |
-
gr.
|
78 |
],
|
79 |
-
outputs=gr.
|
80 |
title="PDF Abstract to Speech",
|
81 |
description="Extracts and summarizes the abstract from a PDF file and converts it to speech."
|
82 |
)
|
|
|
73 |
iface = gr.Interface(
|
74 |
fn=process_pdf,
|
75 |
inputs=[
|
76 |
+
gr.File(label="Upload PDF", type="pdf"),
|
77 |
+
gr.Textbox(label="Hugging Face Model Name for Summarization")
|
78 |
],
|
79 |
+
outputs=gr.Audio(label="Audio Summary"),
|
80 |
title="PDF Abstract to Speech",
|
81 |
description="Extracts and summarizes the abstract from a PDF file and converts it to speech."
|
82 |
)
|