Spaces:
Sleeping
Sleeping
Update tasks/text.py
Browse files- tasks/text.py +1 -0
tasks/text.py
CHANGED
@@ -125,6 +125,7 @@ async def evaluate_text(request: TextEvaluationRequest):
|
|
125 |
print(true_labels)
|
126 |
print('Accuracy: ', (true_labels == predictions)/len(true_labels))
|
127 |
|
|
|
128 |
print('Accuracy: ', accuracy_score(true_labels, predictions))
|
129 |
print('F1 SCORE: ', f1_score(true_labels, predictions))
|
130 |
# Stop tracking emissions
|
|
|
125 |
print(true_labels)
|
126 |
print('Accuracy: ', (true_labels == predictions)/len(true_labels))
|
127 |
|
128 |
+
|
129 |
print('Accuracy: ', accuracy_score(true_labels, predictions))
|
130 |
print('F1 SCORE: ', f1_score(true_labels, predictions))
|
131 |
# Stop tracking emissions
|