aumkar commited on
Commit
9d5af9e
β€’
1 Parent(s): 96255c2

update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -19,7 +19,10 @@ def answer_question(pdf_file, question):
19
  # Define the Gradio interface
20
  interface = gr.Interface(
21
  fn=answer_question,
22
- inputs=[gr.inputs.File(type="pdf"), gr.inputs.Textbox(lines=2, placeholder="Type your question here...")],
 
 
 
23
  outputs="text",
24
  title="PDF Question Answering",
25
  description="Upload a PDF document and ask a question based on its content."
 
19
  # Define the Gradio interface
20
  interface = gr.Interface(
21
  fn=answer_question,
22
+ inputs=[
23
+ gr.File(type="pdf"),
24
+ gr.Textbox(lines=2, placeholder="Type your question here...")
25
+ ],
26
  outputs="text",
27
  title="PDF Question Answering",
28
  description="Upload a PDF document and ask a question based on its content."