ner_examples / app.py
Sunmar's picture
Update app.py
c7bef57 verified
raw
history blame
365 Bytes
# Use a pipeline as a high-level helper
from transformers import pipeline
import streamlit as st
pipe = pipeline("ner", model="SIRIS-Lab/affilgood-NER-multilingual", aggregation_strategy="simple")
st.title("Basic NER model testing")
affiliation_address = st.text_input("Enter address")
if st.button("Print"):
st.write(f"Result: {pipe(affiliation_address)}!")