Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +1 -1
src/streamlit_app.py
CHANGED
|
@@ -120,7 +120,7 @@ category_mapping = {
|
|
| 120 |
}
|
| 121 |
|
| 122 |
# --- Model Loading ---
|
| 123 |
-
@st.
|
| 124 |
def load_ner_model():
|
| 125 |
"""Loads the GLiNER model and caches it."""
|
| 126 |
try:
|
|
|
|
| 120 |
}
|
| 121 |
|
| 122 |
# --- Model Loading ---
|
| 123 |
+
@st.cache_resource
|
| 124 |
def load_ner_model():
|
| 125 |
"""Loads the GLiNER model and caches it."""
|
| 126 |
try:
|