Spaces:
Runtime error
Runtime error
tuned better
Browse files
app.py
CHANGED
@@ -9,8 +9,6 @@ import nltk
|
|
9 |
nltk.download('all')
|
10 |
import string
|
11 |
from sklearn.feature_extraction.text import TfidfVectorizer
|
12 |
-
from sklearn.metrics.pairwise import cosine_similarity
|
13 |
-
|
14 |
# import fastai
|
15 |
|
16 |
|
@@ -82,7 +80,7 @@ def NLTK(input):
|
|
82 |
nltk.download('punkt')
|
83 |
nltk.download('wordnet')
|
84 |
sent_tokens = nltk.sent_tokenize(data)
|
85 |
-
return bot(
|
86 |
|
87 |
def bot(sent_tokens):
|
88 |
robo1_response = ''
|
|
|
9 |
nltk.download('all')
|
10 |
import string
|
11 |
from sklearn.feature_extraction.text import TfidfVectorizer
|
|
|
|
|
12 |
# import fastai
|
13 |
|
14 |
|
|
|
80 |
nltk.download('punkt')
|
81 |
nltk.download('wordnet')
|
82 |
sent_tokens = nltk.sent_tokenize(data)
|
83 |
+
return bot(sent_tokens)
|
84 |
|
85 |
def bot(sent_tokens):
|
86 |
robo1_response = ''
|