Update multi_agent.py
Browse files- multi_agent.py +13 -9
multi_agent.py
CHANGED
@@ -74,19 +74,23 @@ def run_multi_agent(llm, message):
|
|
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 |
-
|
|
|
|
|
|
|
82 |
for file in files_in_folder:
|
83 |
print(file)
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
|
|
|
|
|
|
90 |
|
91 |
#file_path_py = "coding/" + file_name_py
|
92 |
#code = read_python_file(file_path_py)
|
|
|
74 |
|
75 |
print("### markdown_code = " + markdown_code)
|
76 |
|
|
|
|
|
77 |
files_in_folder = os.listdir("coding")
|
78 |
|
79 |
+
file_name_py = ""
|
80 |
+
file_name_sh = ""
|
81 |
+
|
82 |
+
print(f"Files in {files_in_folder}:")
|
83 |
for file in files_in_folder:
|
84 |
print(file)
|
85 |
+
if file :
|
86 |
+
_, file_extension = os.path.splitext(file)
|
87 |
+
if file_extension == "py":
|
88 |
+
file_name_py = file
|
89 |
+
if file_extension == "sh":
|
90 |
+
file_name_sh = file
|
91 |
+
|
92 |
+
print(file_name_py)
|
93 |
+
print(file_name_sh)
|
94 |
|
95 |
#file_path_py = "coding/" + file_name_py
|
96 |
#code = read_python_file(file_path_py)
|