Spaces:
Runtime error
Runtime error
Commit ·
dd0bfe6
1
Parent(s): 587dbb2
Update app.py
Browse files
app.py
CHANGED
|
@@ -72,9 +72,7 @@ def infer(question, history):
|
|
| 72 |
|
| 73 |
chat_history = res
|
| 74 |
#print(chat_history)
|
| 75 |
-
query = question
|
| 76 |
-
English: \
|
| 77 |
-
Chinese (Simplified):"
|
| 78 |
result = qa({"question": query, "chat_history": chat_history})
|
| 79 |
#print(result)
|
| 80 |
return result["answer"]
|
|
|
|
| 72 |
|
| 73 |
chat_history = res
|
| 74 |
#print(chat_history)
|
| 75 |
+
query = question
|
|
|
|
|
|
|
| 76 |
result = qa({"question": query, "chat_history": chat_history})
|
| 77 |
#print(result)
|
| 78 |
return result["answer"]
|