Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ st.write("This application identifies, highlights and categorizes nouns.")
|
|
| 19 |
|
| 20 |
model_list = ['xlm-roberta-large-finetuned-conll03-english', 'xlm-roberta-large']
|
| 21 |
|
| 22 |
-
st.sidebar.header("Vocabulary
|
| 23 |
model_checkpoint = st.sidebar.radio("", model_list)
|
| 24 |
|
| 25 |
st.sidebar.write("Which model highlights the most nouns? Which model highlights nouns the most accurately?")
|
|
@@ -72,10 +72,10 @@ if Run_Button == True:
|
|
| 72 |
cols_to_keep = ['word','entity','score','start','end']
|
| 73 |
df_final = df[cols_to_keep]
|
| 74 |
|
| 75 |
-
st.subheader("
|
| 76 |
st.dataframe(df_final)
|
| 77 |
|
| 78 |
-
st.subheader("
|
| 79 |
spacy_display = {}
|
| 80 |
spacy_display["ents"] = []
|
| 81 |
spacy_display["text"] = input_text
|
|
|
|
| 19 |
|
| 20 |
model_list = ['xlm-roberta-large-finetuned-conll03-english', 'xlm-roberta-large']
|
| 21 |
|
| 22 |
+
st.sidebar.header("Vocabulary Categorizer")
|
| 23 |
model_checkpoint = st.sidebar.radio("", model_list)
|
| 24 |
|
| 25 |
st.sidebar.write("Which model highlights the most nouns? Which model highlights nouns the most accurately?")
|
|
|
|
| 72 |
cols_to_keep = ['word','entity','score','start','end']
|
| 73 |
df_final = df[cols_to_keep]
|
| 74 |
|
| 75 |
+
st.subheader("Categorized Nouns")
|
| 76 |
st.dataframe(df_final)
|
| 77 |
|
| 78 |
+
st.subheader("Highlighted Nouns")
|
| 79 |
spacy_display = {}
|
| 80 |
spacy_display["ents"] = []
|
| 81 |
spacy_display["text"] = input_text
|