AIEcosystem commited on
Commit
9773934
·
verified ·
1 Parent(s): 32024c3

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. 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("knowledgator/gliner-bi-large-v1.0", 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()
 
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()