karmat314 commited on
Commit
438301c
1 Parent(s): ed7cc98

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import streamlit as st
2
  from transformers import pipeline
3
 
4
- sentiment_pipeline = pipeline("sentiment-analysis")
5
 
6
  st.title("Sentiment Analysis with HuggingFace Spaces")
7
  st.write("this is a text")
 
1
  import streamlit as st
2
  from transformers import pipeline
3
 
4
+ sentiment_pipeline = pipeline("text-classification", model="kwang123/bert-sentiment-analysis")
5
 
6
  st.title("Sentiment Analysis with HuggingFace Spaces")
7
  st.write("this is a text")