chumpblocckami commited on
Commit
a9cf63c
1 Parent(s): b51cc8c

feat: added models choice

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -36,11 +36,13 @@ st.set_page_config(page_title="Named Entity Recognition")
36
  st.title("Named Entity Recognition")
37
  st.write("Type text into the text box and then press 'Predict' to get the named entities.")
38
 
39
- option = st.selectbox('Model', ("dslim/bert-base-NER", "flair/ner-english-fast", "Jean-Baptiste/camembert-ner"))
40
- st.write('Selected model:', option)
41
-
 
42
  default_text = "Xbox v PlayStation: Giants clash over Call of Duty: Xbox owner Microsoft has hit back at claims its plan to buy the maker of Call of Duty may unfairly affect its rivals, including Sony, which owns PlayStation."
43
  text = st.text_area('Enter text here:', value=default_text)
 
44
  submit = st.button('Predict')
45
 
46
  with st.spinner("Loading model..."):
 
36
  st.title("Named Entity Recognition")
37
  st.write("Type text into the text box and then press 'Predict' to get the named entities.")
38
 
39
+ option = st.selectbox('Select model',
40
+ ("dslim/bert-base-NER",
41
+ "dslim/bert-large-NER",
42
+ "Davlan/bert-base-multilingual-cased-ner-hrl"))
43
  default_text = "Xbox v PlayStation: Giants clash over Call of Duty: Xbox owner Microsoft has hit back at claims its plan to buy the maker of Call of Duty may unfairly affect its rivals, including Sony, which owns PlayStation."
44
  text = st.text_area('Enter text here:', value=default_text)
45
+ st.write('Model used for prediction:', option)
46
  submit = st.button('Predict')
47
 
48
  with st.spinner("Loading model..."):