kmkarakaya commited on
Commit
abef4a0
·
1 Parent(s): 916d928

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -33,7 +33,7 @@ with open('id_to_category.pkl', 'rb') as fp:
33
  id_to_category = pickle.load(fp)
34
 
35
  def text_classifier(text):
36
- predictions=end_to_end_model.predict(examples)
37
  for pred in predictions:
38
  return(id_to_category[np.argmax(pred)])
39
 
 
33
  id_to_category = pickle.load(fp)
34
 
35
  def text_classifier(text):
36
+ predictions=end_to_end_model.predict(text)
37
  for pred in predictions:
38
  return(id_to_category[np.argmax(pred)])
39