Spaces:
Build error
Build error
Commit
·
4d2674e
1
Parent(s):
5b53652
Update app.py
Browse files
app.py
CHANGED
|
@@ -63,7 +63,7 @@ def predict(sentence, history=[]):
|
|
| 63 |
if prob.item() > 0.75:
|
| 64 |
for intent in intents['intents']:
|
| 65 |
if tag == intent["tag"]:
|
| 66 |
-
reply = random.choice(intent['responses'])
|
| 67 |
|
| 68 |
return reply, history
|
| 69 |
|
|
|
|
| 63 |
if prob.item() > 0.75:
|
| 64 |
for intent in intents['intents']:
|
| 65 |
if tag == intent["tag"]:
|
| 66 |
+
reply = [random.choice(intent['responses'])]
|
| 67 |
|
| 68 |
return reply, history
|
| 69 |
|