os1187 commited on
Commit
659a935
·
verified ·
1 Parent(s): f069ded

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -85,10 +85,10 @@ def process_pdf_and_generate_response(pdf_file):
85
  response = "Response based on the processed PDF"
86
  return response
87
 
88
- # Gradio interface with customized layout
89
  iface = gr.Interface(
90
  fn=process_pdf_and_generate_response,
91
- inputs=layout,
 
92
  title="pdf-chatbot",
93
  description="Upload a PDF and receive insights based on its content."
94
  )
 
85
  response = "Response based on the processed PDF"
86
  return response
87
 
 
88
  iface = gr.Interface(
89
  fn=process_pdf_and_generate_response,
90
+ inputs=gr.File(label="Upload PDF", type="file"),
91
+ outputs=gr.Textbox("Placeholder for PDF insights", label="Insights", type="text"),
92
  title="pdf-chatbot",
93
  description="Upload a PDF and receive insights based on its content."
94
  )