Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +1 -1
src/streamlit_app.py
CHANGED
|
@@ -119,7 +119,7 @@ def load_gliner_model():
|
|
| 119 |
This ensures the model is only loaded once, improving performance.
|
| 120 |
"""
|
| 121 |
try:
|
| 122 |
-
return GLiNER.from_pretrained("knowledgator/gliner-multitask-
|
| 123 |
except Exception as e:
|
| 124 |
st.error(f"Error loading the GLiNER model: {e}")
|
| 125 |
st.stop()
|
|
|
|
| 119 |
This ensures the model is only loaded once, improving performance.
|
| 120 |
"""
|
| 121 |
try:
|
| 122 |
+
return GLiNER.from_pretrained("knowledgator/gliner-multitask-large-v0.5", device="cpu")
|
| 123 |
except Exception as e:
|
| 124 |
st.error(f"Error loading the GLiNER model: {e}")
|
| 125 |
st.stop()
|