Update multi_agent.py
Browse files- multi_agent.py +16 -16
multi_agent.py
CHANGED
@@ -70,36 +70,36 @@ def run_multi_agent(llm, message):
|
|
70 |
)
|
71 |
|
72 |
image_data = read_image_file("/home/user/app/coding/ytd_stock_gains.png")
|
73 |
-
|
74 |
|
75 |
-
|
76 |
|
77 |
current_folder = os.getcwd()
|
78 |
-
|
79 |
files_in_folder = os.listdir("coding")
|
80 |
|
81 |
print(f"Files in {current_folder}:")
|
82 |
for file in files_in_folder:
|
83 |
print(file)
|
84 |
|
85 |
-
file_name_py = read_py_file("coding", ".py")
|
86 |
-
file_name_sh = read_py_file("coding", ".sh")
|
87 |
|
88 |
-
print(file_name_py)
|
89 |
-
print(file_name_sh)
|
90 |
|
91 |
-
file_path_py = "coding/" + file_name_py
|
92 |
-
code = read_python_file(file_path_py)
|
93 |
-
markdown_code = format_as_markdown(code)
|
94 |
|
95 |
-
file_path_sh = "coding/" + file_name_sh
|
96 |
-
code = read_python_file(file_path_sh)
|
97 |
-
markdown_code += "<br />" + format_as_markdown(code)
|
98 |
|
99 |
-
print("### markdown_code = " + markdown_code)
|
100 |
|
101 |
-
print("###")
|
102 |
#print(chat_result)
|
103 |
-
print("###")
|
104 |
|
105 |
return markdown_code
|
|
|
70 |
)
|
71 |
|
72 |
image_data = read_image_file("/home/user/app/coding/ytd_stock_gains.png")
|
73 |
+
markdown_code = generate_markdown_code(image_data)
|
74 |
|
75 |
+
print("### markdown_code = " + markdown_code)
|
76 |
|
77 |
current_folder = os.getcwd()
|
78 |
+
print(current_folder)
|
79 |
files_in_folder = os.listdir("coding")
|
80 |
|
81 |
print(f"Files in {current_folder}:")
|
82 |
for file in files_in_folder:
|
83 |
print(file)
|
84 |
|
85 |
+
#file_name_py = read_py_file("coding", ".py")
|
86 |
+
#file_name_sh = read_py_file("coding", ".sh")
|
87 |
|
88 |
+
#print(file_name_py)
|
89 |
+
#print(file_name_sh)
|
90 |
|
91 |
+
#file_path_py = "coding/" + file_name_py
|
92 |
+
#code = read_python_file(file_path_py)
|
93 |
+
#markdown_code = format_as_markdown(code)
|
94 |
|
95 |
+
#file_path_sh = "coding/" + file_name_sh
|
96 |
+
#code = read_python_file(file_path_sh)
|
97 |
+
#markdown_code += "<br />" + format_as_markdown(code)
|
98 |
|
99 |
+
#print("### markdown_code = " + markdown_code)
|
100 |
|
101 |
+
#print("###")
|
102 |
#print(chat_result)
|
103 |
+
#print("###")
|
104 |
|
105 |
return markdown_code
|