bstraehle commited on
Commit
d42c7e2
1 Parent(s): ad78420

Update multi_agent.py

Browse files
Files changed (1) hide show
  1. multi_agent.py +0 -29
multi_agent.py CHANGED
@@ -61,35 +61,6 @@ def run_multi_agent(llm, message):
61
  image_data = read_image_file("/home/user/app/coding/ytd_stock_gains.png")
62
  markdown_code_png = generate_markdown_image(image_data)
63
 
64
- '''
65
- file_name_py = ""
66
- file_name_sh = ""
67
-
68
- for file in os.listdir("coding"):
69
- if file:
70
- _, file_extension = os.path.splitext(file)
71
- if file_extension == ".py":
72
- file_name_py = file
73
- if file_extension == ".sh":
74
- file_name_sh = file
75
-
76
- try:
77
- file_path_py = "coding/" + file_name_py
78
- code_py = read_file(file_path_py)
79
- markdown_code_py = format_as_markdown(code_py)
80
-
81
- file_path_sh = "coding/" + file_name_sh
82
- code_sh = read_file(file_path_sh)
83
- markdown_code_sh = format_as_markdown(code_sh)
84
- except FileNotFoundError:
85
- print(f"Error: File '{file_path_sh}' not found.")
86
- except IOError as e:
87
- print(f"Error reading file '{file_path_sh}': {e.strerror}")
88
- except Exception as e:
89
- print(f"An unexpected error occurred: {e}")
90
- '''
91
-
92
- #result = f"{markdown_code_png}\n\n{markdown_code_sh}\n\n{markdown_code_py}\n\n{chat}"
93
  result = f"{markdown_code_png}\n\n{chat}"
94
 
95
  #print("===")
 
61
  image_data = read_image_file("/home/user/app/coding/ytd_stock_gains.png")
62
  markdown_code_png = generate_markdown_image(image_data)
63
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
  result = f"{markdown_code_png}\n\n{chat}"
65
 
66
  #print("===")