Update app.py
Browse files
app.py
CHANGED
|
@@ -64,7 +64,7 @@ def ask_question(query):
|
|
| 64 |
if "rag_chain" not in globals():
|
| 65 |
return "Please upload and process a PDF first."
|
| 66 |
|
| 67 |
-
response = rag_chain.invoke(query)
|
| 68 |
return response
|
| 69 |
|
| 70 |
# Gradio UI
|
|
|
|
| 64 |
if "rag_chain" not in globals():
|
| 65 |
return "Please upload and process a PDF first."
|
| 66 |
|
| 67 |
+
response = rag_chain.invoke(query).content
|
| 68 |
return response
|
| 69 |
|
| 70 |
# Gradio UI
|