Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,10 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
from transformers import AutoTokenizer, AutoModel
|
| 3 |
|
| 4 |
-
tokenizer
|
| 5 |
-
|
|
|
|
|
|
|
| 6 |
|
| 7 |
text = st.text_area('Enter Hebrew text')
|
| 8 |
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
from transformers import AutoTokenizer, AutoModel
|
| 3 |
|
| 4 |
+
with st.spinner('Loading tokenizer and model...'):
|
| 5 |
+
tokenizer = AutoTokenizer.from_pretrained("malper/unikud")
|
| 6 |
+
model = AutoModel.from_pretrained("malper/unikud")
|
| 7 |
+
st.success('Loaded!')
|
| 8 |
|
| 9 |
text = st.text_area('Enter Hebrew text')
|
| 10 |
|