AIEcosystem commited on
Commit
cafc0d6
·
verified ·
1 Parent(s): 27f48c7

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +1 -1
src/streamlit_app.py CHANGED
@@ -153,7 +153,7 @@ category_mapping = {
153
  def load_ner_model():
154
  """Loads the GLiNER model and caches it."""
155
  try:
156
- return GLiNER.from_pretrained("knowledgator/gliner-decoder-large-v1.0", nested_ner=True, num_gen_sequences=2, gen_constraints= labels)
157
  except Exception as e:
158
  st.error(f"Failed to load NER model. Please check your internet connection or model availability: {e}")
159
  st.stop()
 
153
  def load_ner_model():
154
  """Loads the GLiNER model and caches it."""
155
  try:
156
+ return GLiNER.from_pretrained("knowledgator/gliner-decoder-large-v1.0", nested_ner=True, num_gen_sequences=2, gen_constraints= labels, threshold = 0.7)
157
  except Exception as e:
158
  st.error(f"Failed to load NER model. Please check your internet connection or model availability: {e}")
159
  st.stop()