Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,7 +37,7 @@ else:
|
|
| 37 |
|
| 38 |
# Calculer les métriques de performance (vous devez ajuster ces lignes selon votre tâche)
|
| 39 |
if text and candidate_labels:
|
| 40 |
-
inputs = df["
|
| 41 |
true_labels = df["label"].tolist()
|
| 42 |
predictions = classifier(inputs, candidate_labels, hypothesis_template=hypothesis_template)
|
| 43 |
predicted_labels = [result['labels'][0] for result in predictions]
|
|
|
|
| 37 |
|
| 38 |
# Calculer les métriques de performance (vous devez ajuster ces lignes selon votre tâche)
|
| 39 |
if text and candidate_labels:
|
| 40 |
+
inputs = df["text"].tolist()
|
| 41 |
true_labels = df["label"].tolist()
|
| 42 |
predictions = classifier(inputs, candidate_labels, hypothesis_template=hypothesis_template)
|
| 43 |
predicted_labels = [result['labels'][0] for result in predictions]
|