Spaces:
Runtime error
Runtime error
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +1 -1
src/streamlit_app.py
CHANGED
|
@@ -541,7 +541,7 @@ with tab2:
|
|
| 541 |
st.markdown("For any errors or inquiries, please contact us at [[email protected]](mailto:[email protected])")
|
| 542 |
|
| 543 |
# --- Model Loading ---
|
| 544 |
-
@st.
|
| 545 |
def load_ner_model(labels):
|
| 546 |
"""Loads the GLiNER model and caches it."""
|
| 547 |
try:
|
|
|
|
| 541 |
st.markdown("For any errors or inquiries, please contact us at [[email protected]](mailto:[email protected])")
|
| 542 |
|
| 543 |
# --- Model Loading ---
|
| 544 |
+
@st.cache_resource
|
| 545 |
def load_ner_model(labels):
|
| 546 |
"""Loads the GLiNER model and caches it."""
|
| 547 |
try:
|