mfilipak commited on
Commit
4bdd502
·
1 Parent(s): c5fb111

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- with open("log.txt","wt") as f:
27
- f.write(txt+"\n")
 
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]