aemin commited on
Commit
be73eb0
·
1 Parent(s): 68edef0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -191,8 +191,13 @@ def load_sparknlp_models():
191
  return model_dict
192
 
193
 
 
 
 
194
  nlp_dict= load_sparknlp_models()
195
 
 
 
196
 
197
  if selected_model=="ner_conll_albert_large_uncased":
198
  text= st.text_input("Type here your text and press enter to run:", value="Mark Knopfler was born in Glasgow, Scotland. He is a British singer-songwriter, guitarist, and record producer. He became known as the lead guitarist, singer and songwriter of the rock band Dire Straits.")
 
191
  return model_dict
192
 
193
 
194
+ #placeholder for warning
195
+ placeholder_= st.empty()
196
+ placeholder_.info("If you are launching the app for the first time, it may take some time for SparkNLP models to load...")
197
  nlp_dict= load_sparknlp_models()
198
 
199
+ placeholder_.empty()
200
+
201
 
202
  if selected_model=="ner_conll_albert_large_uncased":
203
  text= st.text_input("Type here your text and press enter to run:", value="Mark Knopfler was born in Glasgow, Scotland. He is a British singer-songwriter, guitarist, and record producer. He became known as the lead guitarist, singer and songwriter of the rock band Dire Straits.")