Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,10 @@
|
|
1 |
# Use a pipeline as a high-level helper
|
2 |
from transformers import pipeline
|
|
|
3 |
|
4 |
pipe = pipeline("ner", model="SIRIS-Lab/affilgood-NER-multilingual", aggregation_strategy="simple")
|
5 |
|
6 |
-
|
|
|
|
|
|
|
|
1 |
# Use a pipeline as a high-level helper
|
2 |
from transformers import pipeline
|
3 |
+
import streamlit as st
|
4 |
|
5 |
pipe = pipeline("ner", model="SIRIS-Lab/affilgood-NER-multilingual", aggregation_strategy="simple")
|
6 |
|
7 |
+
st.title("Basic NER model testing")
|
8 |
+
affiliation_address = st.text_input("Enter address")
|
9 |
+
if st.button("Print"):
|
10 |
+
st.write(f"Result: {pipe(affiliation_address)}!")
|