Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ st.set_page_config(layout="wide", page_title="Vocabulary Categorizer")
|
|
17 |
st.title("Vocabulary Categorizer")
|
18 |
st.write("This application identifies, highlights and categories nouns.")
|
19 |
|
20 |
-
model_list = ['xlm-roberta-large-finetuned-conll03-english', '
|
21 |
|
22 |
st.sidebar.header("Vocabulary categorizer")
|
23 |
model_checkpoint = st.sidebar.radio("", model_list)
|
@@ -32,8 +32,10 @@ if model_checkpoint == "xlm-roberta-large-finetuned-conll03-english":
|
|
32 |
aggregation = st.sidebar.radio("", ('simple', 'none'))
|
33 |
st.sidebar.write(xlm_agg_strategy_info)
|
34 |
st.sidebar.write("")
|
35 |
-
elif model_checkpoint == "
|
36 |
-
aggregation = 'none'
|
|
|
|
|
37 |
|
38 |
st.subheader("Select Text Input Method")
|
39 |
input_method = st.radio("", ('Select from Examples', 'Write or Paste New Text'))
|
|
|
17 |
st.title("Vocabulary Categorizer")
|
18 |
st.write("This application identifies, highlights and categories nouns.")
|
19 |
|
20 |
+
model_list = ['xlm-roberta-large-finetuned-conll03-english', 'xlm-roberta-base']
|
21 |
|
22 |
st.sidebar.header("Vocabulary categorizer")
|
23 |
model_checkpoint = st.sidebar.radio("", model_list)
|
|
|
32 |
aggregation = st.sidebar.radio("", ('simple', 'none'))
|
33 |
st.sidebar.write(xlm_agg_strategy_info)
|
34 |
st.sidebar.write("")
|
35 |
+
elif model_checkpoint == "xlm-roberta-base":
|
36 |
+
aggregation = st.sidebar.radio("", ('simple', 'none'))
|
37 |
+
st.sidebar.write(xlm_agg_strategy_info)
|
38 |
+
st.sidebar.write("")
|
39 |
|
40 |
st.subheader("Select Text Input Method")
|
41 |
input_method = st.radio("", ('Select from Examples', 'Write or Paste New Text'))
|