Update app.py
Browse files
app.py
CHANGED
|
@@ -12,8 +12,14 @@ def process_input(message, pdf_file):
|
|
| 12 |
|
| 13 |
iface = gr.Interface(
|
| 14 |
fn=process_input,
|
| 15 |
-
inputs=[
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
)
|
| 18 |
|
| 19 |
iface.launch()
|
|
|
|
| 12 |
|
| 13 |
iface = gr.Interface(
|
| 14 |
fn=process_input,
|
| 15 |
+
inputs=[
|
| 16 |
+
"text",
|
| 17 |
+
gr.File(
|
| 18 |
+
type="pdf",
|
| 19 |
+
label="Please upload a PDF file that contains an abstract. You will receive a one-sentence summary of the PDF and can listen to it.",
|
| 20 |
+
),
|
| 21 |
+
],
|
| 22 |
+
outputs="text",
|
| 23 |
)
|
| 24 |
|
| 25 |
iface.launch()
|