fix logger bug (#241)

This commit is contained in:
Wendong-Fan
2025-03-12 23:27:58 +08:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -131,8 +131,8 @@ def main():
)
# Output results
logger.success(f"Correct: {result['correct']}, Total: {result['total']}")
logger.success(f"Accuracy: {result['accuracy']}")
logger.info(f"Correct: {result['correct']}, Total: {result['total']}")
logger.info(f"Accuracy: {result['accuracy']}")
if __name__ == "__main__":

View File

@@ -195,7 +195,7 @@ class GAIABenchmark(BaseBenchmark):
# Process tasks
for task in tqdm(datas, desc="Running"):
if self._check_task_completed(task["task_id"]):
logger.success(
logger.info(
f"The following task is already completed:\n task id: {task['task_id']}, question: {task['Question']}"
)
continue