Update app.py
Browse files
app.py
CHANGED
|
@@ -10,6 +10,10 @@ import re
|
|
| 10 |
|
| 11 |
from modules.syntax_analysis import highlight_repeated_words, get_repeated_words_colors, POS_COLORS, POS_TRANSLATIONS, visualize_syntax
|
| 12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
# Load spaCy model
|
| 14 |
nlp = spacy.load("es_core_news_lg")
|
| 15 |
|
|
|
|
| 10 |
|
| 11 |
from modules.syntax_analysis import highlight_repeated_words, get_repeated_words_colors, POS_COLORS, POS_TRANSLATIONS, visualize_syntax
|
| 12 |
|
| 13 |
+
@st.cache_resource
|
| 14 |
+
def load_spacy_model():
|
| 15 |
+
return spacy.load("es_core_news_lg")
|
| 16 |
+
|
| 17 |
# Load spaCy model
|
| 18 |
nlp = spacy.load("es_core_news_lg")
|
| 19 |
|