Spaces:
Running
Running
app: st.cache with allow_output_mutation parameter is deprecated.
Browse filesSee: https://docs.streamlit.io/library/advanced-features/caching
It is replaced by st.cache_resource now.
app.py
CHANGED
@@ -32,7 +32,7 @@ input_text = st.text_area('Write or Paste Text Below',
|
|
32 |
label_visibility="collapsed")
|
33 |
|
34 |
|
35 |
-
@st.
|
36 |
def get_model(model_name):
|
37 |
return SequenceTagger.load(model_map[model_name])
|
38 |
|
|
|
32 |
label_visibility="collapsed")
|
33 |
|
34 |
|
35 |
+
@st.cache_resource
|
36 |
def get_model(model_name):
|
37 |
return SequenceTagger.load(model_map[model_name])
|
38 |
|