hv68 commited on
Commit
b22c372
·
1 Parent(s): 0123026

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -56,7 +56,7 @@ def get_annotated_text(text):
56
  l = []
57
 
58
  for i in text:
59
- if i == '' or i == " ":
60
  continue
61
  c = model(model.preprocess([i])).argmax()
62
  print("class : ", c)
 
56
  l = []
57
 
58
  for i in text:
59
+ if i.strip(' ') == '':
60
  continue
61
  c = model(model.preprocess([i])).argmax()
62
  print("class : ", c)