Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +1 -1
src/streamlit_app.py
CHANGED
|
@@ -513,7 +513,7 @@ category_mapping = {
|
|
| 513 |
reverse_category_mapping = {label: category for category, label_list in category_mapping.items() for label in label_list}
|
| 514 |
|
| 515 |
# --- Model Loading ---
|
| 516 |
-
@st.
|
| 517 |
def load_ner_model():
|
| 518 |
"""Loads the GLiNER model and caches it."""
|
| 519 |
try:
|
|
|
|
| 513 |
reverse_category_mapping = {label: category for category, label_list in category_mapping.items() for label in label_list}
|
| 514 |
|
| 515 |
# --- Model Loading ---
|
| 516 |
+
@st.cache_resource
|
| 517 |
def load_ner_model():
|
| 518 |
"""Loads the GLiNER model and caches it."""
|
| 519 |
try:
|