Sunmar commited on
Commit
c7bef57
·
verified ·
1 Parent(s): 48a2863

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
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
- print (pipe("NTT Basic Research Laboratories, NTT Corporation, 3-1 Morinosato-Wakamiya, Atsugi, Kanagawa 243-0198, Japan"))
 
 
 
 
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)}!")