ipvikas commited on
Commit
9239d24
1 Parent(s): 89c38bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -294,8 +294,8 @@ bot_name = "Sam"
294
 
295
 
296
 
297
- def get_response(msg):
298
- sentence = tokenize(msg)
299
  X = bag_of_words(sentence, all_words)
300
  X = X.reshape(1, X.shape[0])
301
  X = torch.from_numpy(X).to(device)
 
294
 
295
 
296
 
297
+ def get_response(input_text):
298
+ sentence = tokenize(input_text)
299
  X = bag_of_words(sentence, all_words)
300
  X = X.reshape(1, X.shape[0])
301
  X = torch.from_numpy(X).to(device)