Update multi_agent.py
Browse files- multi_agent.py +3 -9
multi_agent.py
CHANGED
@@ -76,12 +76,6 @@ def run_multi_agent(llm, task):
|
|
76 |
chat += f"**{message['role'].replace('assistant', 'Code Executor').replace('user', 'Code Writer')}**\n{message['content']}\n\n"
|
77 |
first_message = False
|
78 |
|
79 |
-
#for file in os.listdir("coding"):
|
80 |
-
# if file:
|
81 |
-
# _, file_extension = os.path.splitext(file)
|
82 |
-
# if file_extension == ".png":
|
83 |
-
# file_name_png = file
|
84 |
-
|
85 |
file_name_png = get_latest_file("coding", ".png")
|
86 |
|
87 |
image_data = read_image_file(f"/home/user/app/coding/{file_name_png}")
|
@@ -89,8 +83,8 @@ def run_multi_agent(llm, task):
|
|
89 |
|
90 |
result = f"{markdown_code_png}\n\n{chat}"
|
91 |
|
92 |
-
print("===")
|
93 |
-
print(result)
|
94 |
-
print("===")
|
95 |
|
96 |
return result
|
|
|
76 |
chat += f"**{message['role'].replace('assistant', 'Code Executor').replace('user', 'Code Writer')}**\n{message['content']}\n\n"
|
77 |
first_message = False
|
78 |
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
file_name_png = get_latest_file("coding", ".png")
|
80 |
|
81 |
image_data = read_image_file(f"/home/user/app/coding/{file_name_png}")
|
|
|
83 |
|
84 |
result = f"{markdown_code_png}\n\n{chat}"
|
85 |
|
86 |
+
#print("===")
|
87 |
+
#print(result)
|
88 |
+
#print("===")
|
89 |
|
90 |
return result
|