merve HF staff commited on
Commit
9bebc47
Β·
1 Parent(s): e413986

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -71,6 +71,7 @@ if input:
71
  "Hmm, not sure I know the answer, maybe you could ask differently? πŸ€“",
72
  "Sorry, I didn't understand you, maybe you could ask differently? πŸ€“ Try asking 'What should I use to extract name in a document' πŸ€—"]
73
  bot_answer = random.choice(fallback_template)
 
74
 
75
  with placeholder.container():
76
  last_message = message_history[-1]
 
71
  "Hmm, not sure I know the answer, maybe you could ask differently? πŸ€“",
72
  "Sorry, I didn't understand you, maybe you could ask differently? πŸ€“ Try asking 'What should I use to extract name in a document' πŸ€—"]
73
  bot_answer = random.choice(fallback_template)
74
+ message_history.append({"text":bot_answer, "is_user" : False})
75
 
76
  with placeholder.container():
77
  last_message = message_history[-1]