Update app.py
Browse files
app.py
CHANGED
@@ -294,8 +294,8 @@ bot_name = "Sam"
|
|
294 |
|
295 |
|
296 |
|
297 |
-
def get_response(
|
298 |
-
sentence = tokenize(
|
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)
|