Spaces:
Runtime error
Runtime error
Update flask_app.py
Browse files- flask_app.py +1 -1
flask_app.py
CHANGED
|
@@ -171,7 +171,7 @@ def model_inference(retriever, question, llm):
|
|
| 171 |
if retrieved_docs else "No references found."
|
| 172 |
)
|
| 173 |
|
| 174 |
-
return f"{final_answer}\nReferences: {references}"
|
| 175 |
|
| 176 |
# # Example usage:
|
| 177 |
# formatted_output = model_inference(retriever, "What is the main purpose of the Khyber Pakhtunkhwa Arms Act, 2013?", llm)
|
|
|
|
| 171 |
if retrieved_docs else "No references found."
|
| 172 |
)
|
| 173 |
|
| 174 |
+
return f"{final_answer}\nReferences: {references}\nContext: {context}"
|
| 175 |
|
| 176 |
# # Example usage:
|
| 177 |
# formatted_output = model_inference(retriever, "What is the main purpose of the Khyber Pakhtunkhwa Arms Act, 2013?", llm)
|