merve HF Staff commited on
Commit
92a0f76
Β·
1 Parent(s): 306b3a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -73,8 +73,8 @@ if input:
73
  fallback_template = ["I didn't get the question 🧐 Could you please ask again? Try 'What should I use for detecting masks in an image?'",
74
  "Hmm, not sure I know the answer, maybe you could ask differently? πŸ€“",
75
  "Sorry, I didn't understand you, maybe you could ask differently? πŸ€“ Try asking 'What should I use to extract name in a document' πŸ€—"]
76
- bot_answer = random.choice(fallback_template)
77
- message_history.append({"text":bot_answer, "is_user" : False})
78
 
79
  with placeholder.container():
80
  last_message = message_history[-1]
 
73
  fallback_template = ["I didn't get the question 🧐 Could you please ask again? Try 'What should I use for detecting masks in an image?'",
74
  "Hmm, not sure I know the answer, maybe you could ask differently? πŸ€“",
75
  "Sorry, I didn't understand you, maybe you could ask differently? πŸ€“ Try asking 'What should I use to extract name in a document' πŸ€—"]
76
+ bot_answer = random.choice(fallback_template)
77
+ message_history.append({"text":bot_answer, "is_user" : False})
78
 
79
  with placeholder.container():
80
  last_message = message_history[-1]