umarigan commited on
Commit
02e77ee
·
verified ·
1 Parent(s): 416df38

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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.inputs.File(label="Upload PDF"), gr.inputs.Textbox(label="Query")],
64
- outputs=gr.outputs.HTML(label="Visualization"), # Use gr.outputs.Image for image output
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()