Update app.py
Browse files
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 = "
|
292 |
|
293 |
###removed
|
294 |
|
@@ -305,7 +305,7 @@ def get_response(input_text):
|
|
305 |
#if sentence== "quit":
|
306 |
#break
|
307 |
|
308 |
-
sentence= tokenize(
|
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)
|