AIEcosystem commited on
Commit
334c51d
·
verified ·
1 Parent(s): f90ad55

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +8 -3
src/streamlit_app.py CHANGED
@@ -82,7 +82,12 @@ For any errors or inquiries, please contact us at [email protected]""")
82
  with st.sidebar:
83
  st.write("Use the following code to embed the HR.ai web app on your website. Feel free to adjust the width and height values to fit your page.")
84
  code = '''
85
- <iframe src="https://aiecosystem-hr-ai.hf.space" frameborder="0" width="850" height="450"></iframe>
 
 
 
 
 
86
  '''
87
  st.code(code, language="html")
88
  st.text("")
@@ -124,7 +129,7 @@ category_mapping = {
124
  def load_ner_model():
125
  """Loads the GLiNER model and caches it."""
126
  try:
127
- return GLiNER.from_pretrained("knowledgator/gliner-multitask-large-v0.5", nested_ner=True, num_gen_sequences=2, gen_constraints= labels)
128
  except Exception as e:
129
  st.error(f"Failed to load NER model. Please check your internet connection or model availability: {e}")
130
  st.stop()
@@ -141,7 +146,7 @@ def clear_text():
141
  st.session_state['my_text_area'] = ""
142
 
143
  st.button("Clear text", on_click=clear_text)
144
- st.divider()
145
 
146
  # --- Results Section ---
147
  if st.button("Results"):
 
82
  with st.sidebar:
83
  st.write("Use the following code to embed the HR.ai web app on your website. Feel free to adjust the width and height values to fit your page.")
84
  code = '''
85
+ <iframe
86
+ src="https://aiecosystem-hr-ai.hf.space"
87
+ frameborder="0"
88
+ width="850"
89
+ height="450"
90
+ ></iframe>
91
  '''
92
  st.code(code, language="html")
93
  st.text("")
 
129
  def load_ner_model():
130
  """Loads the GLiNER model and caches it."""
131
  try:
132
+ return GLiNER.from_pretrained("gliner-community/gliner_xxl-v2.5", nested_ner=True, num_gen_sequences=2, gen_constraints= labels)
133
  except Exception as e:
134
  st.error(f"Failed to load NER model. Please check your internet connection or model availability: {e}")
135
  st.stop()
 
146
  st.session_state['my_text_area'] = ""
147
 
148
  st.button("Clear text", on_click=clear_text)
149
+
150
 
151
  # --- Results Section ---
152
  if st.button("Results"):