pedropauletti commited on
Commit
945537d
1 Parent(s): e306148

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -52,7 +52,7 @@ def chatbot_response(chat_history, language):
52
  response = get_answers(retriever, GoogleTranslator(source='pt', target='en').translate(chat_history[-1][0]))
53
  response = GoogleTranslator(source='en', target='pt').translate(response)
54
  else:
55
- response = get_answers(retriever, history[-1][0])
56
 
57
  last_answer = response
58
 
@@ -61,6 +61,8 @@ def chatbot_response(chat_history, language):
61
  time.sleep(0.01)
62
  yield chat_history
63
 
 
 
64
  def get_answers(retriever, query):
65
  from haystack.pipelines import FAQPipeline
66
 
 
52
  response = get_answers(retriever, GoogleTranslator(source='pt', target='en').translate(chat_history[-1][0]))
53
  response = GoogleTranslator(source='en', target='pt').translate(response)
54
  else:
55
+ response = get_answers(retriever, chat_history[-1][0])
56
 
57
  last_answer = response
58
 
 
61
  time.sleep(0.01)
62
  yield chat_history
63
 
64
+
65
+
66
  def get_answers(retriever, query):
67
  from haystack.pipelines import FAQPipeline
68