ipvikas commited on
Commit
5f24c90
1 Parent(s): 4185f8c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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['responses'])
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: