test4good commited on
Commit
27377dd
·
verified ·
1 Parent(s): 8b3b7e7

Update app.py

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