lokraj2 commited on
Commit
7d078cc
1 Parent(s): f01fd5c

model added

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
  from textblob import TextBlob
4
 
5
- pipe = pipeline('sentiment-analysis')
6
  st.title("Hugging Face Sentiment Analysis Spaces Example")
7
  st.subheader("What framework would you like to use for Sentiment Analysis")
8
  #Picking what NLP task you want to do
 
2
  from transformers import pipeline
3
  from textblob import TextBlob
4
 
5
+ pipe = pipeline('sentiment-analysis', model="distilbert-base-uncased-finetuned-sst-2-english")
6
  st.title("Hugging Face Sentiment Analysis Spaces Example")
7
  st.subheader("What framework would you like to use for Sentiment Analysis")
8
  #Picking what NLP task you want to do