Update app.py
Browse files
app.py
CHANGED
|
@@ -30,11 +30,11 @@ def process_pdf(pdf):
|
|
| 30 |
#Now creating the interface to read the PDFs
|
| 31 |
|
| 32 |
interface = gr.Interface(fn=process_pdf,
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
|
| 39 |
-
|
| 40 |
interface.launch()
|
|
|
|
| 30 |
#Now creating the interface to read the PDFs
|
| 31 |
|
| 32 |
interface = gr.Interface(fn=process_pdf,
|
| 33 |
+
inputs=gr.inputs.File(type="file", label="Upload PDF"),
|
| 34 |
+
outputs="text",
|
| 35 |
+
title="Summarizing outloud",
|
| 36 |
+
description="Extract abstracts from PDFs, summarize then in 1 sentence and get an audio of it",
|
| 37 |
+
examples=[["example_pdf1.pdf"], ["example_pdf2.pdf"]])
|
| 38 |
|
| 39 |
+
if __name__ == "__main__":
|
| 40 |
interface.launch()
|