Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,13 +29,14 @@ def generate_summary(pdf_path):
|
|
| 29 |
|
| 30 |
iface = gr.Interface(
|
| 31 |
fn=generate_summary,
|
| 32 |
-
inputs=gr.File()
|
| 33 |
outputs=[
|
| 34 |
gr.Textbox(),
|
| 35 |
gr.Textbox(),
|
| 36 |
gr.Textbox(),
|
| 37 |
],
|
| 38 |
-
live=True
|
|
|
|
| 39 |
)
|
| 40 |
|
| 41 |
iface.launch()
|
|
|
|
| 29 |
|
| 30 |
iface = gr.Interface(
|
| 31 |
fn=generate_summary,
|
| 32 |
+
inputs="file_path", # Change to file_path instead of gr.File()
|
| 33 |
outputs=[
|
| 34 |
gr.Textbox(),
|
| 35 |
gr.Textbox(),
|
| 36 |
gr.Textbox(),
|
| 37 |
],
|
| 38 |
+
live=True,
|
| 39 |
+
max_upload_size=200 # Adjust the maximum upload size as needed
|
| 40 |
)
|
| 41 |
|
| 42 |
iface.launch()
|