Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +1 -1
src/streamlit_app.py
CHANGED
|
@@ -174,7 +174,7 @@ category_mapping = {
|
|
| 174 |
def load_ner_model():
|
| 175 |
"""Loads the GLiNER model and caches it."""
|
| 176 |
try:
|
| 177 |
-
return GLiNER.from_pretrained("gliner-
|
| 178 |
except Exception as e:
|
| 179 |
st.error(f"Failed to load NER model. Please check your internet connection or model availability: {e}")
|
| 180 |
st.stop()
|
|
|
|
| 174 |
def load_ner_model():
|
| 175 |
"""Loads the GLiNER model and caches it."""
|
| 176 |
try:
|
| 177 |
+
return GLiNER.from_pretrained("knowledgator/gliner-multitask-large-v0.5", nested_ner=True, num_gen_sequences=2, gen_constraints= labels)
|
| 178 |
except Exception as e:
|
| 179 |
st.error(f"Failed to load NER model. Please check your internet connection or model availability: {e}")
|
| 180 |
st.stop()
|