Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
import streamlit as st
|
2 |
-
from transformers import pipeline
|
3 |
|
4 |
-
classifier = pipeline("
|
5 |
def main():
|
6 |
-
st.title("
|
7 |
|
8 |
with st.form("text_field"):
|
9 |
-
text = st.text_area('enter some
|
10 |
# clicked==True only when the button is clicked
|
11 |
clicked = st.form_submit_button("Submit")
|
12 |
if clicked:
|
|
|
1 |
import streamlit as st
|
2 |
+
from transformers import pipeline, AutoTokenizer,AutoModelForTokenClassification
|
3 |
|
4 |
+
classifier = pipeline("Token Classification", model="KoichiYasuoka/bert-base-japanese-upos")
|
5 |
def main():
|
6 |
+
st.title("POS-tagging for Japanese texts")
|
7 |
|
8 |
with st.form("text_field"):
|
9 |
+
text = st.text_area('enter some Japanese texts:')
|
10 |
# clicked==True only when the button is clicked
|
11 |
clicked = st.form_submit_button("Submit")
|
12 |
if clicked:
|