Spaces:
Build error
Build error
Commit ·
0ec0371
1
Parent(s): f395837
update
Browse files326 unmodified lines327328329330331332333334335336337338339340326 unmodified lineslogger.info(f"ground_truth_key: {ground_truth_key}")if ground_truth_key in ground_truth:model_prediction = ground_truth[ground_truth_key]['answer'].upper()if user_prediction.upper() == model_prediction:correct_predictions += 1if user_prediction.upper() == "TRUE":true_predictions += 1elif user_prediction.upper() == "FALSE":false_predictions += 1else:logger.warning(f"Missing key in ground truth: {ground_truth_key}")326 unmodified lines327328329330331332333334335336337338339340341342343344345346326 unmodified lineslogger.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 taskmodel_prediction = ground_truth[ground_truth_key]['prediction'].upper()if user_prediction.upper() == model_prediction:# correct_predictions += 1true_predictions += 1else:false_predictions += 1# if user_prediction.upper() == "TRUE":# true_predictions += 1# elif user_prediction.upper() == "FALSE":# false_predictions += 1else:logger.warning(f"Missing key in ground truth: {ground_truth_key}")
app.py+11-5