Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -56,7 +56,7 @@ def get_annotated_text(text):
|
|
56 |
l = []
|
57 |
|
58 |
for i in text:
|
59 |
-
if 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)
|