jifangw
2024-10-11 ffe0a00122f8e109c67e8a5b2de39a9c3595d225
Update test_full.py
1 files modified
5 ■■■■■ changed files
FilmAgent/test_full.py 5 ●●●●● patch | view | raw | blame | history
FilmAgent/test_full.py
@@ -501,7 +501,7 @@
        all_shots = read_prompt(self.shot_description_path)   
        params = {"{script}": script, "{all_shots}": all_shots}
        result1 = self.call("cinematographer", params)
        result2 = self.call("director_8", params)
        result2 = self.call("cinematographer", params)
        for scene_id, scene in result1.items():
            for shot_id, shot in scene.items():
                shot.pop("reasoning")
@@ -573,7 +573,8 @@
                    "{all_shots}": all_shots
                    }
        result = self.call("director_9", params)
        last_shots = current_shot_d if result['better'].lower()=="director" else current_shot_c
        last_shots = current_shot_d if result['better']=="1" else current_shot_c
        # last_shots = current_shot_d if result['better'].lower()=="director" else current_shot_c
        
        assert len(list(last_shots.keys())) == len(scenes)
        for id in range(len(list(last_shots.keys()))):