lterriel commited on
Commit
b13ba88
·
1 Parent(s): 13867b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,8 +9,8 @@ streamlit.title("NER4Archives visualizer")
9
  streamlit.write("This is a NER model test application for NER4Archives project. "
10
  "Pass through the analyzer only small samples.")
11
  text = streamlit.text_area("Text to analyze...", default_text)
12
- models = [name.strip() for name in models.split(",")]
13
- nlp = spacy.load(models[0])
14
  nlp.add_pipe("entityfishing")
15
  doc = nlp(text)
16
  spacy_streamlit.visualize_ner(
 
9
  streamlit.write("This is a NER model test application for NER4Archives project. "
10
  "Pass through the analyzer only small samples.")
11
  text = streamlit.text_area("Text to analyze...", default_text)
12
+ # models = [name.strip() for name in models.split(",")]
13
+ nlp = spacy.load("fr_ner4archives_default_test")
14
  nlp.add_pipe("entityfishing")
15
  doc = nlp(text)
16
  spacy_streamlit.visualize_ner(