Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -63,7 +63,7 @@ def process_pdf_and_answer(pdf_file, question):
|
|
| 63 |
|
| 64 |
# Process the question
|
| 65 |
res = chain({"question": question})
|
| 66 |
-
|
| 67 |
|
| 68 |
gr.Interface(
|
| 69 |
fn=process_pdf_and_answer,
|
|
|
|
| 63 |
|
| 64 |
# Process the question
|
| 65 |
res = chain({"question": question})
|
| 66 |
+
return res["answer"]
|
| 67 |
|
| 68 |
gr.Interface(
|
| 69 |
fn=process_pdf_and_answer,
|