merve HF staff commited on
Commit
306b3a0
β€’
1 Parent(s): 7ec07f8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = 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' πŸ€—"]
 
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' πŸ€—"]