Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -66,10 +66,7 @@ def process_pdf_and_ask_question(pdf_file,question):
|
|
| 66 |
res = chain({"question": question})
|
| 67 |
return res["answer"]
|
| 68 |
|
| 69 |
-
|
| 70 |
-
return process_pdf_and_ask_question(pdf, question)
|
| 71 |
-
|
| 72 |
-
gr.interface(fn=gradio_interface,
|
| 73 |
inputs=[gr.File(file_count="single", type="filepath"), gr.Textbox(lines=2, placeholder="Ask a question...")],
|
| 74 |
outputs="text",
|
| 75 |
title="PDF Q&A",
|
|
|
|
| 66 |
res = chain({"question": question})
|
| 67 |
return res["answer"]
|
| 68 |
|
| 69 |
+
gr.Interface(fn=process_pdf_and_ask_question,
|
|
|
|
|
|
|
|
|
|
| 70 |
inputs=[gr.File(file_count="single", type="filepath"), gr.Textbox(lines=2, placeholder="Ask a question...")],
|
| 71 |
outputs="text",
|
| 72 |
title="PDF Q&A",
|