Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +1 -1
src/streamlit_app.py
CHANGED
|
@@ -98,7 +98,7 @@ if not comet_initialized:
|
|
| 98 |
st.warning("Comet ML not initialized. Check environment variables.")
|
| 99 |
|
| 100 |
# --- Model Loading and Caching ---
|
| 101 |
-
@st.
|
| 102 |
def load_gliner_model(model_name):
|
| 103 |
"""Initializes and caches the GLiNER model."""
|
| 104 |
try:
|
|
|
|
| 98 |
st.warning("Comet ML not initialized. Check environment variables.")
|
| 99 |
|
| 100 |
# --- Model Loading and Caching ---
|
| 101 |
+
@st.cache_resource
|
| 102 |
def load_gliner_model(model_name):
|
| 103 |
"""Initializes and caches the GLiNER model."""
|
| 104 |
try:
|