stefan-it commited on
Commit
6b3ace2
1 Parent(s): b353d46

app: st.cache with allow_output_mutation parameter is deprecated.

Browse files

See: https://docs.streamlit.io/library/advanced-features/caching

It is replaced by st.cache_resource now.

Files changed (1) hide show
  1. app.py +1 -1
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.cache(allow_output_mutation=True)
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