Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import streamlit as st
|
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
def main():
|
| 5 |
-
sentiment_pipeline = pipeline("
|
| 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:")
|