Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files78 unmodified lines7980818283848578 unmodified lines16416516616716816917078 unmodified lines**Usage Limits:** You can request results unlimited times for one (1) month.**Supported Languages:** English**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""")with st.sidebar: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.")78 unmodified lines"""Loads the GLiNER model and caches it."""try:# The 'labels' variable is now correctly passed to the functionreturn GLiNER.from_pretrained("knowledgator/gliner-multitask-v1.0", nested_ner=True, num_gen_sequences=2, gen_constraints=labels)except Exception as e:st.error(f"Failed to load NER model. Please check your internet connection or model availability: {e}")st.stop()78 unmodified lines7980818283848586878878 unmodified lines16716816917017117217378 unmodified lines**Usage Limits:** You can request results unlimited times for one (1) month.**Supported Languages:** English**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""")with st.sidebar: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.")78 unmodified lines"""Loads the GLiNER model and caches it."""try:# The 'labels' variable is now correctly passed to the functionreturn GLiNER.from_pretrained("knowledgator/gliner-multitask-large-v0.5", nested_ner=True, num_gen_sequences=2, gen_constraints=labels)except Exception as e:st.error(f"Failed to load NER model. Please check your internet connection or model availability: {e}")st.stop()
src/streamlit_app.py+5-2