EC2 Default User commited on
Commit
92be4b9
1 Parent(s): f719192
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -14,9 +14,8 @@ logging.basicConfig(format="\n%(asctime)s\n%(message)s", level=logging.INFO, for
14
 
15
  @st.cache(suppress_st_warning=True)
16
  def load_tagger():
17
- with text_spinner_placeholder:
18
- tagger=SequenceTagger.load("flair/ner-english-large")
19
- return tagger
20
  def anonymise_text(text: str, metadata: str = "", white_listed_words: str = ""):
21
  """anonymise text"""
22
  if st.session_state.n_requests >= 50:
 
14
 
15
  @st.cache(suppress_st_warning=True)
16
  def load_tagger():
17
+ return SequenceTagger.load("flair/ner-english-large")
18
+
 
19
  def anonymise_text(text: str, metadata: str = "", white_listed_words: str = ""):
20
  """anonymise text"""
21
  if st.session_state.n_requests >= 50: