test4good commited on
Commit
4520a4e
·
verified ·
1 Parent(s): 26ba3a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -183,7 +183,8 @@ def chatbot(query):
183
  result_in_russian = qa_chain.run(input_documents=[{"context": most_relevant_section}], question=query_in_russian)
184
 
185
  # Translate answer back to the original language as best as we can
186
- final_answer = translate_answer_back(result_in_russian, query_language)
 
187
  return final_answer
188
 
189
  def admin_interface(url):
 
183
  result_in_russian = qa_chain.run(input_documents=[{"context": most_relevant_section}], question=query_in_russian)
184
 
185
  # Translate answer back to the original language as best as we can
186
+ # final_answer = translate_answer_back(result_in_russian, query_language)
187
+ final_answer = translate_answer_back(result_in_russian["answer"], query_language)
188
  return final_answer
189
 
190
  def admin_interface(url):