AIEcosystem commited on
Commit
41afe7c
·
verified ·
1 Parent(s): 2bece53

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("gretelai/gretel-gliner-bi-large-v1.0", nested_ner=True, num_gen_sequences=2, gen_constraints= labels, threshold = 0.70)
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("gretelai/gretel-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()