Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files173 unmodified lines174175176177177178179180173 unmodified linesdef load_ner_model(): """Loads the GLiNER model and caches it.""" try: return GLiNER.from_pretrained("gliner-community/gliner_large-v2.5", nested_ner=True, num_gen_sequences=2, gen_constraints= labels) return GLiNER.from_pretrained("knowledgator/gliner-multitask-large-v0.5", nested_ner=True, num_gen_sequences=2, gen_constraints= labels) except Exception as e: st.error(f"Failed to load NER model. Please check your internet connection or model availability: {e}") st.stop()src/streamlit_app.py+1-1