Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from transformers import pipeline
|
|
5 |
|
6 |
|
7 |
#Load the model
|
8 |
-
model = pipeline(task="sentiment-analysis", model="
|
9 |
|
10 |
def analyze_tweet(tweet_text):
|
11 |
results = model(tweet_text)
|
|
|
5 |
|
6 |
|
7 |
#Load the model
|
8 |
+
model = pipeline(task="sentiment-analysis", model="cardiffnlp/twitter-roberta-base-sentiment")
|
9 |
|
10 |
def analyze_tweet(tweet_text):
|
11 |
results = model(tweet_text)
|