huimanho commited on
Commit
61595ff
1 Parent(s): 7007048

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ import streamlit as st
2
  from transformers import pipeline
3
 
4
  def main():
5
- sentiment_pipeline = pipeline("sentiment-analysis")
6
 
7
  st.title("Sentiment Analysis with HuggingFace Spaces")
8
  st.write("Enter a sentence to analyze its sentiment:")
 
2
  from transformers import pipeline
3
 
4
  def main():
5
+ sentiment_pipeline = pipeline(model="distilbert/distilbert-base-uncased-finetuned-sst-2-english")
6
 
7
  st.title("Sentiment Analysis with HuggingFace Spaces")
8
  st.write("Enter a sentence to analyze its sentiment:")