Spaces:
Build error
Build error
Commit ·
0ec0371
1
Parent(s): f395837
update
Browse files326 unmodified lines327328329330331332330333334332333334335336336337338339340341342343344345346326 unmodified lines logger.info(f"ground_truth_key: {ground_truth_key}")
if ground_truth_key in ground_truth: # TODO: Important Note -> # Using model prediction as we are doing forward simulation # Please use ground_truth[ground_truth_key]['answer'].upper() if running verification task model_prediction = ground_truth[ground_truth_key]['answer'].upper() model_prediction = ground_truth[ground_truth_key]['prediction'].upper() if user_prediction.upper() == model_prediction: correct_predictions += 1
if user_prediction.upper() == "TRUE": # correct_predictions += 1 true_predictions += 1 elif user_prediction.upper() == "FALSE": else: 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+11-5