Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -28,6 +28,8 @@ if model_checkpoint == "xlm-roberta-large-finetuned-conll03-english":
|
|
28 |
aggregation = st.sidebar.radio("", ('simple', 'none'))
|
29 |
st.sidebar.write(xlm_agg_strategy_info)
|
30 |
st.sidebar.write("")
|
|
|
|
|
31 |
|
32 |
st.subheader("Select Text Input Method")
|
33 |
input_method = st.radio("", ('Select from Examples', 'Write or Paste New Text'))
|
|
|
28 |
aggregation = st.sidebar.radio("", ('simple', 'none'))
|
29 |
st.sidebar.write(xlm_agg_strategy_info)
|
30 |
st.sidebar.write("")
|
31 |
+
elif model_checkpoint == "spacy/en_core_web_sm":
|
32 |
+
aggregation = "none"
|
33 |
|
34 |
st.subheader("Select Text Input Method")
|
35 |
input_method = st.radio("", ('Select from Examples', 'Write or Paste New Text'))
|