Wootang01 commited on
Commit
0f63c19
1 Parent(s): 0b51283

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 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,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("Recognized Nouns")
76
  st.dataframe(df_final)
77
 
78
- st.subheader("Spacy Style Display")
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