Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -69,7 +69,7 @@ if input:
|
|
69 |
|
70 |
bot_answer = random.choice(response_templates)
|
71 |
message_history.append({"text":bot_answer, "is_user" : False})
|
72 |
-
if key_exists
|
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' π€"]
|
|
|
69 |
|
70 |
bot_answer = random.choice(response_templates)
|
71 |
message_history.append({"text":bot_answer, "is_user" : False})
|
72 |
+
if key_exists == False:
|
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' π€"]
|