Spaces:
Sleeping
Sleeping
Aliibraheem516
commited on
Commit
•
c7aaded
1
Parent(s):
4e4ea6c
Update app.py
Browse files
app.py
CHANGED
@@ -65,7 +65,7 @@ def process_pdf_and_question(pdf_file,question):
|
|
65 |
res = chain({"question": question})
|
66 |
return res["answer"]
|
67 |
|
68 |
-
app=gr.Interface(fn=
|
69 |
inputs=[gr.File(file_count="single", type="filepath"), gr.Textbox(lines=2, placeholder="Ask a question...")],
|
70 |
outputs="text",
|
71 |
title="PDF Q&A",
|
|
|
65 |
res = chain({"question": question})
|
66 |
return res["answer"]
|
67 |
|
68 |
+
app=gr.Interface(fn=process_pdf_and_question,
|
69 |
inputs=[gr.File(file_count="single", type="filepath"), gr.Textbox(lines=2, placeholder="Ask a question...")],
|
70 |
outputs="text",
|
71 |
title="PDF Q&A",
|