woonchen commited on
Commit
32d25e0
·
verified ·
1 Parent(s): 2f5b17c

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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