Update app.py
Browse files
app.py
CHANGED
@@ -206,7 +206,7 @@ def get_response(input_text):
|
|
206 |
if prob.item() > 0.75:
|
207 |
for intent in intents['intents']:
|
208 |
if tag == intent["tag"]:
|
209 |
-
return random.choice(intent['
|
210 |
else:
|
211 |
#if "From Wikipedia" in sentence:
|
212 |
#if sentence:
|
|
|
206 |
if prob.item() > 0.75:
|
207 |
for intent in intents['intents']:
|
208 |
if tag == intent["tag"]:
|
209 |
+
return random.choice(intent['tweet_text'])#responses
|
210 |
else:
|
211 |
#if "From Wikipedia" in sentence:
|
212 |
#if sentence:
|