Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -176,9 +176,9 @@ def main():
|
|
176 |
tokenizer = Tokenizer(num_words=100000)
|
177 |
tokenizer.fit_on_texts(class_list)
|
178 |
word_index = tokenizer.word_index
|
179 |
-
text_embedding = np.zeros((len(word_index) + 1, 300))
|
180 |
-
for word, i in word_index.items():
|
181 |
-
|
182 |
json_file = open('model.json', 'r')
|
183 |
loaded_model_json = json_file.read()
|
184 |
json_file.close()
|
|
|
176 |
tokenizer = Tokenizer(num_words=100000)
|
177 |
tokenizer.fit_on_texts(class_list)
|
178 |
word_index = tokenizer.word_index
|
179 |
+
# text_embedding = np.zeros((len(word_index) + 1, 300))
|
180 |
+
# for word, i in word_index.items():
|
181 |
+
# text_embedding[i] = nlp(word).vector
|
182 |
json_file = open('model.json', 'r')
|
183 |
loaded_model_json = json_file.read()
|
184 |
json_file.close()
|