Update main.py
Browse files
main.py
CHANGED
|
@@ -84,7 +84,7 @@ def invoke(question):
|
|
| 84 |
|
| 85 |
# 调用链并传递 chat_history
|
| 86 |
question = translate_to_english(question)
|
| 87 |
-
chat_history = translate_to_english(chat_history)
|
| 88 |
response = qa_chain.invoke({"question": question, "chat_history": chat_history})
|
| 89 |
response = translate_to_chinese(response)
|
| 90 |
|
|
|
|
| 84 |
|
| 85 |
# 调用链并传递 chat_history
|
| 86 |
question = translate_to_english(question)
|
| 87 |
+
# chat_history = translate_to_english(chat_history)
|
| 88 |
response = qa_chain.invoke({"question": question, "chat_history": chat_history})
|
| 89 |
response = translate_to_chinese(response)
|
| 90 |
|