Spaces:
Running
Running
Make compatible with older streamlit version
Browse files
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.
|
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
|
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 |
|