From 70416cb5fe7d12efd3ff5ff5fbb2b11bdb528d62 Mon Sep 17 00:00:00 2001
From: Ryan Xu <xuzhenran.hitsz@gmail.com>
Date: Thu, 23 Jan 2025 00:04:25 +0800
Subject: [PATCH] Update README.md

---
 FilmAgent/test_full.py |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/FilmAgent/test_full.py b/FilmAgent/test_full.py
index d389720..e4ca79f 100644
--- a/FilmAgent/test_full.py
+++ b/FilmAgent/test_full.py
@@ -341,7 +341,9 @@
         suggestions = ""
         for name, suggestion in feedback.items():
             suggestions = suggestions + f"   - **{name}**: {suggestion}\n"
-        params = {"{suggestions}": suggestions}
+        params = {"{suggestions}": suggestions,
+                  "{character_profiles}": profiles,
+                  "{draft_script}": scenes}
         result = self.call("director_5", params)
         
         if result[return_most_similar("adopted-suggestions", list(result.keys()))] == "None":
@@ -501,7 +503,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 +575,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()))):
@@ -713,4 +716,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