model added
Browse files
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
|