mirror of
https://github.com/camel-ai/owl.git
synced 2026-03-22 05:57:17 +08:00
fix logger bug (#241)
This commit is contained in:
@@ -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__":
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user