Update app.py
Browse files
app.py
CHANGED
@@ -46,8 +46,8 @@ expander.write('''
|
|
46 |
with st.sidebar:
|
47 |
container = st.container(border=True)
|
48 |
container.write("**Named Entity Recognition (NER)** is the task of extracting and tagging entities in text data. Entities can be persons, organizations, locations, countries, products, events etc.")
|
49 |
-
st.subheader("
|
50 |
-
st.link_button("
|
51 |
|
52 |
# --- Comet ML Setup ---
|
53 |
COMET_API_KEY = os.environ.get("COMET_API_KEY")
|
@@ -64,7 +64,7 @@ else:
|
|
64 |
@st.cache_resource
|
65 |
def load_gliner_model():
|
66 |
"""Caches the GLiNER model to prevent re-loading on every app rerun."""
|
67 |
-
return GLiNER.from_pretrained("
|
68 |
|
69 |
# Load the model using the cached function
|
70 |
model = load_gliner_model()
|
|
|
46 |
with st.sidebar:
|
47 |
container = st.container(border=True)
|
48 |
container.write("**Named Entity Recognition (NER)** is the task of extracting and tagging entities in text data. Entities can be persons, organizations, locations, countries, products, events etc.")
|
49 |
+
st.subheader("NER File Builder", divider="red")
|
50 |
+
st.link_button("Build your own NER Web App in a minute without writing a single line of code.", "https://nlpblogs.com/shop/named-entity-recognition-ner/ner-file-builder/", type="primary")
|
51 |
|
52 |
# --- Comet ML Setup ---
|
53 |
COMET_API_KEY = os.environ.get("COMET_API_KEY")
|
|
|
64 |
@st.cache_resource
|
65 |
def load_gliner_model():
|
66 |
"""Caches the GLiNER model to prevent re-loading on every app rerun."""
|
67 |
+
return GLiNER.from_pretrained("knowledgator/gliner-multitask-large-v0.5")
|
68 |
|
69 |
# Load the model using the cached function
|
70 |
model = load_gliner_model()
|