Spaces:
Runtime error
Runtime error
storresbusquets
commited on
Commit
·
206efbc
1
Parent(s):
ad3b6bf
Update app.py
Browse files
app.py
CHANGED
@@ -133,7 +133,7 @@ class GradioInference:
|
|
133 |
}
|
134 |
|
135 |
# Sentiment label
|
136 |
-
label = self.classifier(
|
137 |
|
138 |
# Format the label with emojis
|
139 |
formatted_sentiment = sentiment_emojis.get(label, label)
|
|
|
133 |
}
|
134 |
|
135 |
# Sentiment label
|
136 |
+
label = self.classifier(summary)[0]["label"]
|
137 |
|
138 |
# Format the label with emojis
|
139 |
formatted_sentiment = sentiment_emojis.get(label, label)
|