alanakbik commited on
Commit
b3c2743
1 Parent(s): fcb2250

Make compatible with older streamlit version

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -30,7 +30,7 @@ input_text = st.text_area('Write or Paste Text Below',
30
  label_visibility="collapsed")
31
 
32
 
33
- @st.cache_resource()
34
  def get_model(model_name):
35
  return SequenceTagger.load(model_map[model_name])
36
 
@@ -55,7 +55,7 @@ def color_variant(hex_color, brightness_offset=1):
55
 
56
 
57
  # Block 3: Output is displayed
58
- button_clicked = st.button("**Click to tag the input text**", key=None)
59
 
60
  if button_clicked:
61
 
 
30
  label_visibility="collapsed")
31
 
32
 
33
+ @st.cache(allow_output_mutation=True)
34
  def get_model(model_name):
35
  return SequenceTagger.load(model_map[model_name])
36
 
 
55
 
56
 
57
  # Block 3: Output is displayed
58
+ button_clicked = st.button("**Click here** to tag the input text", key=None)
59
 
60
  if button_clicked:
61