Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,6 @@ import sentencepiece
|
|
3 |
import streamlit as st
|
4 |
import pandas as pd
|
5 |
import spacy
|
6 |
-
nlp = spacy.load("en_core_web_sm")
|
7 |
|
8 |
example_list = [
|
9 |
|
@@ -13,11 +12,10 @@ st.set_page_config(layout="wide")
|
|
13 |
|
14 |
st.title("Vocabulary Categorizer")
|
15 |
|
16 |
-
model_list = ['
|
17 |
-
'xlm-roberta-large-finetuned-conll03-english']
|
18 |
|
19 |
-
st.sidebar.header("
|
20 |
-
model_checkpoint = st.sidebar.radio(""
|
21 |
|
22 |
st.sidebar.write("Which model highlights the most vocabulary words? Which model highlights the most accurately?")
|
23 |
st.sidebar.write("")
|
@@ -29,8 +27,6 @@ if model_checkpoint == "xlm-roberta-large-finetuned-conll03-english":
|
|
29 |
aggregation = st.sidebar.radio("", ('simple', 'none'))
|
30 |
st.sidebar.write(xlm_agg_strategy_info)
|
31 |
st.sidebar.write("")
|
32 |
-
elif model_checkpoint == "spacy/en_core_web_sm":
|
33 |
-
aggregation = "none"
|
34 |
|
35 |
st.subheader("Select Text Input Method")
|
36 |
input_method = st.radio("", ('Select from Examples', 'Write or Paste New Text'))
|
|
|
3 |
import streamlit as st
|
4 |
import pandas as pd
|
5 |
import spacy
|
|
|
6 |
|
7 |
example_list = [
|
8 |
|
|
|
12 |
|
13 |
st.title("Vocabulary Categorizer")
|
14 |
|
15 |
+
model_list = ['xlm-roberta-large-finetuned-conll03-english']
|
|
|
16 |
|
17 |
+
st.sidebar.header("Vocabulary categorizer")
|
18 |
+
model_checkpoint = st.sidebar.radio("xlm-roberta-large-finetuned-conll03-english")
|
19 |
|
20 |
st.sidebar.write("Which model highlights the most vocabulary words? Which model highlights the most accurately?")
|
21 |
st.sidebar.write("")
|
|
|
27 |
aggregation = st.sidebar.radio("", ('simple', 'none'))
|
28 |
st.sidebar.write(xlm_agg_strategy_info)
|
29 |
st.sidebar.write("")
|
|
|
|
|
30 |
|
31 |
st.subheader("Select Text Input Method")
|
32 |
input_method = st.radio("", ('Select from Examples', 'Write or Paste New Text'))
|