Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -120,7 +120,7 @@ st.subheader("")
|
|
120 |
|
121 |
|
122 |
#caching the models in the dictionary
|
123 |
-
@st.cache(allow_output_mutation=True)
|
124 |
def load_sparknlp_models():
|
125 |
ner_models_list= ["nerdl_fewnerd_100d", "ner_conll_elmo", "ner_mit_movie_complex_distilbert_base_cased", "ner_conll_albert_large_uncased", "onto_100"]
|
126 |
embeddings_list= ["glove_100d", "elmo", "distilbert_base_cased", "albert_large_uncased", "glove_100d_for_onto"]
|
@@ -216,7 +216,6 @@ else:
|
|
216 |
text= st.text_input("Type here your text and press enter to run:", value="12 Corazones ('12 Hearts') is Spanish-language dating game show produced in the United States for the television network Telemundo since January 2005, based on its namesake Argentine TV show format. The show is filmed in Los Angeles and revolves around the twelve Zodiac signs that identify each contestant. In 2008, Ho filmed a cameo in the Steven Spielberg feature film The Cloverfield Paradox, as a news pundit.")
|
217 |
|
218 |
|
219 |
-
|
220 |
def build_pipeline(text, model_name=selected_model):
|
221 |
|
222 |
base_pipeline= Pipeline(stages=[
|
|
|
120 |
|
121 |
|
122 |
#caching the models in the dictionary
|
123 |
+
@st.cache(allow_output_mutation=True, show_snipper=False)
|
124 |
def load_sparknlp_models():
|
125 |
ner_models_list= ["nerdl_fewnerd_100d", "ner_conll_elmo", "ner_mit_movie_complex_distilbert_base_cased", "ner_conll_albert_large_uncased", "onto_100"]
|
126 |
embeddings_list= ["glove_100d", "elmo", "distilbert_base_cased", "albert_large_uncased", "glove_100d_for_onto"]
|
|
|
216 |
text= st.text_input("Type here your text and press enter to run:", value="12 Corazones ('12 Hearts') is Spanish-language dating game show produced in the United States for the television network Telemundo since January 2005, based on its namesake Argentine TV show format. The show is filmed in Los Angeles and revolves around the twelve Zodiac signs that identify each contestant. In 2008, Ho filmed a cameo in the Steven Spielberg feature film The Cloverfield Paradox, as a news pundit.")
|
217 |
|
218 |
|
|
|
219 |
def build_pipeline(text, model_name=selected_model):
|
220 |
|
221 |
base_pipeline= Pipeline(stages=[
|