Spaces:
Runtime error
Runtime error
Update clustering.py
Browse files- clustering.py +1 -1
clustering.py
CHANGED
@@ -858,7 +858,7 @@ def map_sentiment(estrella):
|
|
858 |
return "positivo"
|
859 |
|
860 |
|
861 |
-
def classify_sentiment_df(data, comment_col="comment", num_threads=
|
862 |
def classify_sentiment(texto):
|
863 |
resultado = classifier(texto)[0]
|
864 |
sentimiento = map_sentiment(resultado["label"])
|
|
|
858 |
return "positivo"
|
859 |
|
860 |
|
861 |
+
def classify_sentiment_df(data, comment_col="comment", num_threads=8):
|
862 |
def classify_sentiment(texto):
|
863 |
resultado = classifier(texto)[0]
|
864 |
sentimiento = map_sentiment(resultado["label"])
|