Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
| 77 |
-
|
| 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]
|