hiba9 commited on
Commit
e378b0a
·
verified ·
1 Parent(s): 4ad8a89

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -62,12 +62,12 @@ def process_pdf_and_ask_question(pdf_file,question):
62
 
63
  # Process the question
64
  res = chain({"question": question})
65
- return res["answer"]
66
 
67
  app=gr.Interface(fn=process_pdf_and_ask_question,
68
  inputs=[gr.File(file_count="single", type="filepath"), gr.Textbox(lines=2, placeholder="Ask a question...")],
69
  outputs="text",
70
- title="PDF Q&A",
71
  description="Upload a PDF and ask questions about it.",
72
 
73
  )
 
62
 
63
  # Process the question
64
  res = chain({"question": question})
65
+ return res["answer"]
66
 
67
  app=gr.Interface(fn=process_pdf_and_ask_question,
68
  inputs=[gr.File(file_count="single", type="filepath"), gr.Textbox(lines=2, placeholder="Ask a question...")],
69
  outputs="text",
70
+ title="PDF Q&A",
71
  description="Upload a PDF and ask questions about it.",
72
 
73
  )