Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,6 +6,8 @@ from transformers import pipeline
|
|
| 6 |
# Load sentiment analysis pipeline
|
| 7 |
sentiment_pipeline = pipeline("sentiment-analysis")
|
| 8 |
|
|
|
|
|
|
|
| 9 |
# Define function to use in Gradio
|
| 10 |
def analyze_sentiment(text):
|
| 11 |
result = sentiment_pipeline(text)[0]
|
|
|
|
| 6 |
# Load sentiment analysis pipeline
|
| 7 |
sentiment_pipeline = pipeline("sentiment-analysis")
|
| 8 |
|
| 9 |
+
text = "I absolutely love this app! It's amazing."
|
| 10 |
+
|
| 11 |
# Define function to use in Gradio
|
| 12 |
def analyze_sentiment(text):
|
| 13 |
result = sentiment_pipeline(text)[0]
|