Spaces:
Runtime error
Runtime error
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +1 -1
src/streamlit_app.py
CHANGED
|
@@ -487,7 +487,7 @@ COMET_PROJECT_NAME = os.environ.get("COMET_PROJECT_NAME")
|
|
| 487 |
comet_initialized = bool(COMET_API_KEY and COMET_WORKSPACE and COMET_PROJECT_NAME)
|
| 488 |
|
| 489 |
# --- Model Loading ---
|
| 490 |
-
@st.
|
| 491 |
def load_ner_model(labels):
|
| 492 |
"""Loads the GLiNER model and caches it."""
|
| 493 |
try:
|
|
|
|
| 487 |
comet_initialized = bool(COMET_API_KEY and COMET_WORKSPACE and COMET_PROJECT_NAME)
|
| 488 |
|
| 489 |
# --- Model Loading ---
|
| 490 |
+
@st.cache_resource
|
| 491 |
def load_ner_model(labels):
|
| 492 |
"""Loads the GLiNER model and caches it."""
|
| 493 |
try:
|