Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,8 +23,9 @@ tk.word_index = {'UNK': 1, ' ': 2, 'a': 3, 'o': 4, 'e': 5, 'r': 6, 'i': 7, 'c':
|
|
| 23 |
|
| 24 |
def PredictNCM(txt):
|
| 25 |
x = [txt.lower() ]
|
| 26 |
-
|
| 27 |
-
|
|
|
|
| 28 |
X = np.array(tk.texts_to_sequences([_+(120-len(_))*" " for _ in x]))
|
| 29 |
pred = model.predict(X)[0]
|
| 30 |
aux = np.argsort(pred)[::-1][:5]
|
|
|
|
| 23 |
|
| 24 |
def PredictNCM(txt):
|
| 25 |
x = [txt.lower() ]
|
| 26 |
+
|
| 27 |
+
print(txt)
|
| 28 |
+
|
| 29 |
X = np.array(tk.texts_to_sequences([_+(120-len(_))*" " for _ in x]))
|
| 30 |
pred = model.predict(X)[0]
|
| 31 |
aux = np.argsort(pred)[::-1][:5]
|