luulinh90s
commited on
Commit
·
ecc53f5
1
Parent(s):
0ec0371
update
Browse files
app.py
CHANGED
@@ -332,15 +332,12 @@ def completed(session_id):
|
|
332 |
# Please use ground_truth[ground_truth_key]['answer'].upper() if running verification task
|
333 |
model_prediction = ground_truth[ground_truth_key]['prediction'].upper()
|
334 |
if user_prediction.upper() == model_prediction:
|
335 |
-
|
|
|
|
|
336 |
true_predictions += 1
|
337 |
-
|
338 |
false_predictions += 1
|
339 |
-
|
340 |
-
# if user_prediction.upper() == "TRUE":
|
341 |
-
# true_predictions += 1
|
342 |
-
# elif user_prediction.upper() == "FALSE":
|
343 |
-
# false_predictions += 1
|
344 |
else:
|
345 |
logger.warning(f"Missing key in ground truth: {ground_truth_key}")
|
346 |
|
|
|
332 |
# Please use ground_truth[ground_truth_key]['answer'].upper() if running verification task
|
333 |
model_prediction = ground_truth[ground_truth_key]['prediction'].upper()
|
334 |
if user_prediction.upper() == model_prediction:
|
335 |
+
correct_predictions += 1
|
336 |
+
|
337 |
+
if user_prediction.upper() == "TRUE":
|
338 |
true_predictions += 1
|
339 |
+
elif user_prediction.upper() == "FALSE":
|
340 |
false_predictions += 1
|
|
|
|
|
|
|
|
|
|
|
341 |
else:
|
342 |
logger.warning(f"Missing key in ground truth: {ground_truth_key}")
|
343 |
|