Spaces:
Sleeping
Sleeping
Update tasks/text.py
Browse files- tasks/text.py +1 -1
tasks/text.py
CHANGED
@@ -79,7 +79,7 @@ async def evaluate_text(request: TextEvaluationRequest):
|
|
79 |
emissions_data = tracker.stop_task()
|
80 |
|
81 |
# Calculate accuracy
|
82 |
-
accuracy = accuracy_score(true_labels, np.array([1]*len(true_labels))
|
83 |
|
84 |
# Prepare results dictionary
|
85 |
results = {
|
|
|
79 |
emissions_data = tracker.stop_task()
|
80 |
|
81 |
# Calculate accuracy
|
82 |
+
accuracy = accuracy_score(true_labels, np.array([1]*len(true_labels)))
|
83 |
|
84 |
# Prepare results dictionary
|
85 |
results = {
|