Spaces:
Sleeping
Sleeping
yeshpanovrustem
commited on
Commit
β’
3a514c9
1
Parent(s):
2dd0e89
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import transformers
|
|
3 |
|
4 |
# use @st.cache decorator to cache model β because it is too large, we do not want to reload it every time
|
5 |
# use allow_output_mutation = True to tell streamlit that model should be treated as immutable object β singleton
|
6 |
-
@st.cache(allow_output_mutation = True)
|
7 |
|
8 |
# load model and tokenizer
|
9 |
tokenizer = transformers.AutoTokenizer.from_pretrained("yeshpanovrustem/xlm-roberta-large-ner-kazakh")
|
|
|
3 |
|
4 |
# use @st.cache decorator to cache model β because it is too large, we do not want to reload it every time
|
5 |
# use allow_output_mutation = True to tell streamlit that model should be treated as immutable object β singleton
|
6 |
+
# @st.cache(allow_output_mutation = True)
|
7 |
|
8 |
# load model and tokenizer
|
9 |
tokenizer = transformers.AutoTokenizer.from_pretrained("yeshpanovrustem/xlm-roberta-large-ner-kazakh")
|