Update app.py
Browse files
app.py
CHANGED
@@ -23,14 +23,14 @@ def classify_text(text):
|
|
23 |
Returns:
|
24 |
str: La clasificaci贸n del texto, que puede ser "Positivo", "Negativo" o "Neutro".
|
25 |
"""
|
26 |
-
|
27 |
-
result = classifier_sent(text)[0]['label']
|
28 |
-
if result == "POS":
|
29 |
-
|
30 |
-
elif result == "NEG":
|
31 |
-
|
32 |
-
else:
|
33 |
-
|
34 |
|
35 |
def clasificador(input1, input2):
|
36 |
classifier = pipeline("zero-shot-classification", model="MoritzLaurer/mDeBERTa-v3-base-mnli-xnli",tokenizer=tokenizer)
|
|
|
23 |
Returns:
|
24 |
str: La clasificaci贸n del texto, que puede ser "Positivo", "Negativo" o "Neutro".
|
25 |
"""
|
26 |
+
return classifier_sent(text)
|
27 |
+
#result = classifier_sent(text)[0]['label']
|
28 |
+
#if result == "POS":
|
29 |
+
# return "Positivo"
|
30 |
+
#elif result == "NEG":
|
31 |
+
# return "Negativo"
|
32 |
+
#else:
|
33 |
+
# return "Neutro"
|
34 |
|
35 |
def clasificador(input1, input2):
|
36 |
classifier = pipeline("zero-shot-classification", model="MoritzLaurer/mDeBERTa-v3-base-mnli-xnli",tokenizer=tokenizer)
|