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