AIEcosystem commited on
Commit
86fe72e
·
verified ·
1 Parent(s): b739816

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +5 -2
src/streamlit_app.py CHANGED
@@ -79,7 +79,10 @@ Results are presented in easy-to-read tables, visualized in an interactive tree
79
  **Usage Limits:** You can request results unlimited times for one (1) month.
80
 
81
  **Supported Languages:** English
82
- **Technical issues:** If your connection times out, please refresh the page or reopen the app's URL. For any errors or inquiries, please contact us at info@nlpblogs.com""")
 
 
 
83
 
84
  with st.sidebar:
85
  st.write("Use the following code to embed the RetailTag web app on your website. Feel free to adjust the width and height values to fit your page.")
@@ -164,7 +167,7 @@ def load_ner_model():
164
  """Loads the GLiNER model and caches it."""
165
  try:
166
  # The 'labels' variable is now correctly passed to the function
167
- return GLiNER.from_pretrained("knowledgator/gliner-multitask-v1.0", nested_ner=True, num_gen_sequences=2, gen_constraints=labels)
168
  except Exception as e:
169
  st.error(f"Failed to load NER model. Please check your internet connection or model availability: {e}")
170
  st.stop()
 
79
  **Usage Limits:** You can request results unlimited times for one (1) month.
80
 
81
  **Supported Languages:** English
82
+
83
+ **Technical issues:** If your connection times out, please refresh the page or reopen the app's URL.
84
+
85
+ For any errors or inquiries, please contact us at info@nlpblogs.com""")
86
 
87
  with st.sidebar:
88
  st.write("Use the following code to embed the RetailTag web app on your website. Feel free to adjust the width and height values to fit your page.")
 
167
  """Loads the GLiNER model and caches it."""
168
  try:
169
  # The 'labels' variable is now correctly passed to the function
170
+ return GLiNER.from_pretrained("knowledgator/gliner-multitask-large-v0.5", nested_ner=True, num_gen_sequences=2, gen_constraints=labels)
171
  except Exception as e:
172
  st.error(f"Failed to load NER model. Please check your internet connection or model availability: {e}")
173
  st.stop()