Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +1 -1
src/streamlit_app.py
CHANGED
|
@@ -145,7 +145,7 @@ category_mapping = {
|
|
| 145 |
def load_ner_model():
|
| 146 |
"""Loads the GLiNER model and caches it."""
|
| 147 |
try:
|
| 148 |
-
return GLiNER.from_pretrained("
|
| 149 |
except Exception as e:
|
| 150 |
st.error(f"Failed to load NER model. Please check your internet connection or model availability: {e}")
|
| 151 |
st.stop()
|
|
|
|
| 145 |
def load_ner_model():
|
| 146 |
"""Loads the GLiNER model and caches it."""
|
| 147 |
try:
|
| 148 |
+
return GLiNER.from_pretrained("gliner-community/gliner_large-v2.5", nested_ner=True, num_gen_sequences=2, gen_constraints= labels)
|
| 149 |
except Exception as e:
|
| 150 |
st.error(f"Failed to load NER model. Please check your internet connection or model availability: {e}")
|
| 151 |
st.stop()
|