Aomsin commited on
Commit
fa59cc0
·
1 Parent(s): 5451866

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,9 +1,9 @@
1
  import streamlit as st
2
  from transformers import pipeline
3
 
4
- classifier = pipeline("sentiment-analysis", model="amazon_reviews_multi",use_auth_token=True)
5
  def main():
6
- st.title("Amazon reviews")
7
 
8
  with st.form("text_field"):
9
  text = st.text_area('enter some text :')
 
1
  import streamlit as st
2
  from transformers import pipeline
3
 
4
+ classifier = pipeline("text-classification", model="thai_toxicity_tweet")
5
  def main():
6
+ st.title("Thai language in twitter")
7
 
8
  with st.form("text_field"):
9
  text = st.text_area('enter some text :')