Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -60,11 +60,10 @@ def gradio_interface(pdf_file, query):
|
|
60 |
# Set up the Gradio app
|
61 |
iface = gr.Interface(
|
62 |
fn=gradio_interface,
|
63 |
-
inputs=[gr.
|
64 |
-
outputs=gr.
|
65 |
title="PDF Content Visualizer",
|
66 |
description="Upload a PDF and enter a query to visualize the content."
|
67 |
)
|
68 |
|
69 |
-
# Run the app
|
70 |
iface.launch()
|
|
|
60 |
# Set up the Gradio app
|
61 |
iface = gr.Interface(
|
62 |
fn=gradio_interface,
|
63 |
+
inputs=[gr.File(label="Upload PDF"), gr.Textbox(label="Query")], # Updated to new API
|
64 |
+
outputs=gr.HTML(label="Visualization"), # or gr.Image() depending on your output
|
65 |
title="PDF Content Visualizer",
|
66 |
description="Upload a PDF and enter a query to visualize the content."
|
67 |
)
|
68 |
|
|
|
69 |
iface.launch()
|