AIEcosystem commited on
Commit
5024c50
·
verified ·
1 Parent(s): 06c61e3

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +1 -1
src/streamlit_app.py CHANGED
@@ -170,7 +170,7 @@ category_mapping = {
170
  def load_ner_model():
171
  """Loads the GLiNER model and caches it."""
172
  try:
173
- return GLiNER.from_pretrained("knowledgator/gliner-multitask-large-v0.5", nested_ner=True, num_gen_sequences=2, gen_constraints= labels)
174
 
175
  except Exception as e:
176
  st.error(f"Failed to load NER model. Please check your internet connection or model availability: {e}")
 
170
  def load_ner_model():
171
  """Loads the GLiNER model and caches it."""
172
  try:
173
+ return GLiNER.from_pretrained("knowledgator/gliner-multitask-large-v0.5", nested_ner=True, num_gen_sequences=2)
174
 
175
  except Exception as e:
176
  st.error(f"Failed to load NER model. Please check your internet connection or model availability: {e}")