Spaces:
Build error
Build error
ShAnSantosh
commited on
Commit
•
9ff91aa
1
Parent(s):
a2afc78
Update app.py
Browse files
app.py
CHANGED
@@ -65,6 +65,7 @@ def predict(sentence, history):
|
|
65 |
for intent in intents['intents']:
|
66 |
if tag == intent["tag"]:
|
67 |
reply = [random.choice(intent['responses'])]
|
|
|
68 |
history.append((sentence, reply))
|
69 |
return history, history
|
70 |
|
|
|
65 |
for intent in intents['intents']:
|
66 |
if tag == intent["tag"]:
|
67 |
reply = [random.choice(intent['responses'])]
|
68 |
+
reply = "Sorry I do not understand :-("
|
69 |
history.append((sentence, reply))
|
70 |
return history, history
|
71 |
|