Spaces:
Runtime error
Runtime error
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +1 -1
src/streamlit_app.py
CHANGED
|
@@ -507,7 +507,7 @@ COMET_PROJECT_NAME = os.environ.get("COMET_PROJECT_NAME")
|
|
| 507 |
comet_initialized = bool(COMET_API_KEY and COMET_WORKSPACE and COMET_PROJECT_NAME)
|
| 508 |
|
| 509 |
# --- Model Loading ---
|
| 510 |
-
@st.
|
| 511 |
def load_ner_model(labels):
|
| 512 |
"""Loads the GLiNER model and caches it."""
|
| 513 |
try:
|
|
|
|
| 507 |
comet_initialized = bool(COMET_API_KEY and COMET_WORKSPACE and COMET_PROJECT_NAME)
|
| 508 |
|
| 509 |
# --- Model Loading ---
|
| 510 |
+
@st.cache_resource
|
| 511 |
def load_ner_model(labels):
|
| 512 |
"""Loads the GLiNER model and caches it."""
|
| 513 |
try:
|