Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,8 +15,8 @@ def clasificador(input1, input2):
|
|
15 |
sequence_to_classify = input1
|
16 |
input2_list = input2.split(",") # Parse the input string as a list
|
17 |
candidate_labels= [item.strip() for item in input2_list]
|
18 |
-
output0 = classifier(sequence_to_classify, candidate_labels, multi_label=False)
|
19 |
-
output1=pd.DataFrame(output0)
|
20 |
#output1=output1.iloc[:,1:3]
|
21 |
analyzer = create_analyzer(task="sentiment", lang="es")
|
22 |
output2=analyzer.predict(input1)
|
|
|
15 |
sequence_to_classify = input1
|
16 |
input2_list = input2.split(",") # Parse the input string as a list
|
17 |
candidate_labels= [item.strip() for item in input2_list]
|
18 |
+
#output0 = classifier(sequence_to_classify, candidate_labels, multi_label=False)
|
19 |
+
#output1=pd.DataFrame(output0)
|
20 |
#output1=output1.iloc[:,1:3]
|
21 |
analyzer = create_analyzer(task="sentiment", lang="es")
|
22 |
output2=analyzer.predict(input1)
|