christopher commited on
Commit
8b7fa33
·
1 Parent(s): 8cc0de9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -7,4 +7,6 @@ visualizer = EncodingVisualizer(tokenizer=tokenizer._tokenizer, default_to_noteb
7
  text = st.text_area(label="", placeholder="Text to tokenize")
8
  button_clicked = st.button("Tokenize")
9
  if text or button_clicked:
10
- st.write(visualizer(text), unsafe_allow_html=True)
 
 
 
7
  text = st.text_area(label="", placeholder="Text to tokenize")
8
  button_clicked = st.button("Tokenize")
9
  if text or button_clicked:
10
+ st.components.v1.html(visualizer(text), height=500)
11
+
12
+