mirror of
https://github.com/camel-ai/owl.git
synced 2026-03-22 05:57:17 +08:00
fix logger bug
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__":
|
||||
|
||||
@@ -95,7 +95,7 @@ class GAIABenchmark(BaseBenchmark):
|
||||
json.dump(constructed_data, f, indent=4)
|
||||
f.close()
|
||||
|
||||
print(f"Successfully dumped tasks to {save_path}")
|
||||
print(f"infofully dumped tasks to {save_path}")
|
||||
|
||||
def load(self, force_download=False):
|
||||
r"""Load the GAIA dataset.
|
||||
@@ -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