Fix: annotations error
Browse files
app.py
CHANGED
@@ -80,11 +80,7 @@ class GramformerDemo:
|
|
80 |
annotations.append((_text, _type, _color))
|
81 |
else:
|
82 |
annotations.append(token)
|
83 |
-
|
84 |
-
'height': 45*(math.ceil(len(highlight_text)/100)),
|
85 |
-
'scrolling': True
|
86 |
-
}
|
87 |
-
annotated_text(*annotations, **args)
|
88 |
except Exception as e:
|
89 |
print(e)
|
90 |
st.error('Some error occured!')
|
|
|
80 |
annotations.append((_text, _type, _color))
|
81 |
else:
|
82 |
annotations.append(token)
|
83 |
+
annotated_text(*annotations)
|
|
|
|
|
|
|
|
|
84 |
except Exception as e:
|
85 |
print(e)
|
86 |
st.error('Some error occured!')
|