swamisharan commited on
Commit
5a3c78a
·
verified ·
1 Parent(s): 756bcb7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -59,11 +59,12 @@ def chatbot(pdf_file, user_question):
59
  # Create Gradio Interface
60
  iface = gr.Interface(
61
  fn=chatbot,
62
- inputs=[gr.File(type="file", label="Upload your PDF"), gr.Textbox(lines=1, label="Ask a Question")],
63
  outputs="text",
64
  title="PDF Chatbot",
65
  description="Upload a PDF and ask questions about its content.",
66
  )
67
 
 
68
  # Run the Gradio interface
69
  iface.launch()
 
59
  # Create Gradio Interface
60
  iface = gr.Interface(
61
  fn=chatbot,
62
+ inputs=[gr.File(type="binary", label="Upload your PDF"), gr.Textbox(lines=1, label="Ask a Question")],
63
  outputs="text",
64
  title="PDF Chatbot",
65
  description="Upload a PDF and ask questions about its content.",
66
  )
67
 
68
+
69
  # Run the Gradio interface
70
  iface.launch()