Spaces:
Runtime error
Runtime error
storresbusquets
commited on
Commit
·
ffee274
1
Parent(s):
09c3b82
Update app.py
Browse files
app.py
CHANGED
@@ -115,7 +115,7 @@ class GradioInference:
|
|
115 |
keywords = [x.strip() for x in predicted.split(",") if x.strip()]
|
116 |
|
117 |
# Sentiment label
|
118 |
-
label = self.classifier(
|
119 |
|
120 |
# Generate WordCloud object
|
121 |
wordcloud = WordCloud().generate(results["text"])
|
@@ -202,7 +202,7 @@ class GradioInference:
|
|
202 |
keywords = [x.strip() for x in predicted.split(",") if x.strip()]
|
203 |
|
204 |
# Sentiment label
|
205 |
-
label = self.classifier(
|
206 |
|
207 |
# WordCloud object
|
208 |
wordcloud = WordCloud().generate(
|
|
|
115 |
keywords = [x.strip() for x in predicted.split(",") if x.strip()]
|
116 |
|
117 |
# Sentiment label
|
118 |
+
label = self.classifier(summary)[0]["label"]
|
119 |
|
120 |
# Generate WordCloud object
|
121 |
wordcloud = WordCloud().generate(results["text"])
|
|
|
202 |
keywords = [x.strip() for x in predicted.split(",") if x.strip()]
|
203 |
|
204 |
# Sentiment label
|
205 |
+
label = self.classifier(summary)[0]["label"]
|
206 |
|
207 |
# WordCloud object
|
208 |
wordcloud = WordCloud().generate(
|