Spaces:
Sleeping
Sleeping
update
Browse files- tasks/text.py +4 -0
tasks/text.py
CHANGED
|
@@ -114,7 +114,11 @@ async def evaluate_text(request: TextEvaluationRequest):
|
|
| 114 |
#--------------------------------------------------------------------------------------------
|
| 115 |
# YOUR MODEL INFERENCE STOPS HERE
|
| 116 |
#--------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
| 117 |
|
|
|
|
| 118 |
# Stop tracking emissions
|
| 119 |
emissions_data = tracker.stop_task()
|
| 120 |
|
|
|
|
| 114 |
#--------------------------------------------------------------------------------------------
|
| 115 |
# YOUR MODEL INFERENCE STOPS HERE
|
| 116 |
#--------------------------------------------------------------------------------------------
|
| 117 |
+
print(predictions)
|
| 118 |
+
print(true_labels)
|
| 119 |
+
print('Accuracy: ', (true_labels == predictions)/len(true_labels))
|
| 120 |
|
| 121 |
+
print('Accuracy: ', accuracy_score(true_labels, predictions))
|
| 122 |
# Stop tracking emissions
|
| 123 |
emissions_data = tracker.stop_task()
|
| 124 |
|