Spaces:
Build error
Build error
Commit ·
ecc53f5
1
Parent(s): 0ec0371
update
Browse files331 unmodified lines332333334335335336337338337339340339340341342343341342343331 unmodified lines # Please use ground_truth[ground_truth_key]['answer'].upper() if running verification task model_prediction = ground_truth[ground_truth_key]['prediction'].upper() if user_prediction.upper() == model_prediction: # correct_predictions += 1 correct_predictions += 1 if user_prediction.upper() == "TRUE": true_predictions += 1 else: elif user_prediction.upper() == "FALSE": false_predictions += 1
# if user_prediction.upper() == "TRUE": # true_predictions += 1 # elif user_prediction.upper() == "FALSE": # false_predictions += 1 else: logger.warning(f"Missing key in ground truth: {ground_truth_key}")
app.py+4-7