From f60d836ec6f134e45883b6dcdc3924315f923628 Mon Sep 17 00:00:00 2001
From: jifangw <164013213+jifangw@users.noreply.github.com>
Date: Fri, 11 Oct 2024 15:53:40 +0800
Subject: [PATCH] Update main.py
---
FilmAgent/main.py | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/FilmAgent/main.py b/FilmAgent/main.py
index 72f294a..174799f 100644
--- a/FilmAgent/main.py
+++ b/FilmAgent/main.py
@@ -495,7 +495,8 @@
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)
+ # result2 = self.call("director_8", params)
for scene_id, scene in result1.items():
for shot_id, shot in scene.items():
shot.pop("reasoning")
@@ -567,7 +568,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()))):
@@ -707,4 +709,4 @@
print("Director discusses with cinematographer about the shots >>>")
f.stage3_verify()
print("Script cleaning >>>")
- f.clean_script()
\ No newline at end of file
+ f.clean_script()
--
Gitblit v1.8.0