kinensake commited on
Commit
b484679
·
1 Parent(s): 4beadd4

Fix: annotations error

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -80,11 +80,7 @@ class GramformerDemo:
80
  annotations.append((_text, _type, _color))
81
  else:
82
  annotations.append(token)
83
- args = {
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!')