Spaces:
Runtime error
Runtime error
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +1 -1
src/streamlit_app.py
CHANGED
|
@@ -544,7 +544,7 @@ COMET_PROJECT_NAME = os.environ.get("COMET_PROJECT_NAME")
|
|
| 544 |
comet_initialized = bool(COMET_API_KEY and COMET_WORKSPACE and COMET_PROJECT_NAME)
|
| 545 |
|
| 546 |
# --- Model Loading ---
|
| 547 |
-
@st.
|
| 548 |
def load_ner_model(labels):
|
| 549 |
"""Loads the GLiNER model and caches it."""
|
| 550 |
try:
|
|
|
|
| 544 |
comet_initialized = bool(COMET_API_KEY and COMET_WORKSPACE and COMET_PROJECT_NAME)
|
| 545 |
|
| 546 |
# --- Model Loading ---
|
| 547 |
+
@st.cache_resource
|
| 548 |
def load_ner_model(labels):
|
| 549 |
"""Loads the GLiNER model and caches it."""
|
| 550 |
try:
|