Aomsin commited on
Commit
fb65e18
·
1 Parent(s): af1b615

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,12 +1,12 @@
1
  import streamlit as st
2
  from transformers import pipeline
3
 
4
- classifier = pipeline("text-classification", model="xlm-roberta-large-finetuned-conll03-english")
5
  def main():
6
- st.title("Korea text classification ")
7
 
8
  with st.form("text_field"):
9
- text = st.text_area('enter some text (Korea):')
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
3
 
4
+ classifier = pipeline("text-classification", model="amazon_reviews_multi")
5
  def main():
6
+ st.title("Amazon reviews ")
7
 
8
  with st.form("text_field"):
9
+ text = st.text_area('enter some text :')
10
  # clicked==True only when the button is clicked
11
  clicked = st.form_submit_button("Submit")
12
  if clicked: