ipvikas commited on
Commit
704ccbc
1 Parent(s): 0bc96cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -288,7 +288,7 @@ model = NeuralNet(input_size, hidden_size, output_size).to(device)
288
  model.load_state_dict(model_state)
289
  model.eval()
290
 
291
- bot_name = "Sam"
292
 
293
  ###removed
294
 
@@ -305,7 +305,7 @@ def get_response(input_text):
305
  #if sentence== "quit":
306
  #break
307
 
308
- sentence= tokenize(sentence)
309
  X = bag_of_words(sentence, all_words)
310
  X = X.reshape(1, X.shape[0])
311
  X = torch.from_numpy(X).to(device)
 
288
  model.load_state_dict(model_state)
289
  model.eval()
290
 
291
+ bot_name = "WeASK"
292
 
293
  ###removed
294
 
 
305
  #if sentence== "quit":
306
  #break
307
 
308
+ sentence= tokenize(input_text)
309
  X = bag_of_words(sentence, all_words)
310
  X = X.reshape(1, X.shape[0])
311
  X = torch.from_numpy(X).to(device)