()
| 329 | |
| 330 | |
| 331 | def evaluate_main(): |
| 332 | json_file = "XXX/json_files/long_video_topics_list.json" |
| 333 | with open(json_file, "r", encoding="utf-8") as f: |
| 334 | knowledge_points = json.load(f) |
| 335 | |
| 336 | evaluator = VideoEvaluator(request_gemini_with_video) |
| 337 | |
| 338 | # ---------------------------------------------------------------------------------------- |
| 339 | # TODO: target folder |
| 340 | video_list = eva_video_list( |
| 341 | knowledge_points=knowledge_points, |
| 342 | base_dir="XXX/CASES/Sep_ACL_Gemini", |
| 343 | ) |
| 344 | |
| 345 | batch_results = evaluator.evaluate_video_batch(video_list, max_workers=3, use_parallel=True) |
| 346 | |
| 347 | report = evaluator.generate_evaluation_report(batch_results, output_path=None) |
| 348 | print(report) |
| 349 | |
| 350 | |
| 351 | if __name__ == "__main__": |
no test coverage detected