malper commited on
Commit
1143c40
·
1 Parent(s): af83063

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -1,9 +1,13 @@
1
  import streamlit as st
 
 
 
2
 
3
  text = st.text_area('Enter Hebrew text')
4
 
5
  if text:
6
  st.write('Your text:', text)
 
7
 
8
  # x = st.slider('Select a value')
9
  # st.write(x, 'squared is', x * x)
 
1
  import streamlit as st
2
+ from transformers import CanineTokenizer
3
+
4
+ tokenizer = CanineTokenizer.from_pretrained('malper/unikud')
5
 
6
  text = st.text_area('Enter Hebrew text')
7
 
8
  if text:
9
  st.write('Your text:', text)
10
+ st.json(tokenizer(text))
11
 
12
  # x = st.slider('Select a value')
13
  # st.write(x, 'squared is', x * x)