AIEcosystem commited on
Commit
23aeb06
·
verified ·
1 Parent(s): 91f6fa6

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +1 -1
src/streamlit_app.py CHANGED
@@ -160,7 +160,7 @@ category_mapping = {
160
  def load_ner_model():
161
  """Loads the GLiNER model and caches it."""
162
  try:
163
- return GLiNER.from_pretrained("knowledgator/gliner-multitask-v1.0", nested_ner=True, num_gen_sequences=2, gen_constraints= labels)
164
  except Exception as e:
165
  st.error(f"Failed to load NER model. Please check your internet connection or model availability: {e}")
166
  st.stop()
 
160
  def load_ner_model():
161
  """Loads the GLiNER model and caches it."""
162
  try:
163
+ return GLiNER.from_pretrained("urchade/gliner_large-v2.1", nested_ner=True, num_gen_sequences=2, gen_constraints= labels)
164
  except Exception as e:
165
  st.error(f"Failed to load NER model. Please check your internet connection or model availability: {e}")
166
  st.stop()