bstraehle commited on
Commit
2897070
1 Parent(s): 4e847ac

Update multi_agent.py

Browse files
Files changed (1) hide show
  1. multi_agent.py +7 -3
multi_agent.py CHANGED
@@ -1,7 +1,7 @@
1
  from autogen import ConversableAgent, AssistantAgent
2
  from autogen.coding import LocalCommandLineCodeExecutor
3
 
4
- import os
5
  #from IPython.display import Image
6
 
7
  def run_multi_agent(llm, message):
@@ -63,5 +63,9 @@ def run_multi_agent(llm, message):
63
 
64
  image_path = os.path.join('coding', 'ytd_stock_gains.png')
65
  image_markdown = f"![YTD Stock Gains]({image_path})"
66
-
67
- return image_markdown #f"![YTD Stock Gains]({image_path})<br />![YTD Stock Gains]({image_path_2})<br />![YTD Stock Gains]({image_path_3})<br />![YTD Stock Gains]({image_path_4})<br />![YTD Stock Gains]({image_path_5})<br />"
 
 
 
 
 
1
  from autogen import ConversableAgent, AssistantAgent
2
  from autogen.coding import LocalCommandLineCodeExecutor
3
 
4
+ import markdown, os
5
  #from IPython.display import Image
6
 
7
  def run_multi_agent(llm, message):
 
63
 
64
  image_path = os.path.join('coding', 'ytd_stock_gains.png')
65
  image_markdown = f"![YTD Stock Gains]({image_path})"
66
+
67
+ markdown_text = "![YTD Stock Gains](coding/ytd_stock_gains.png)"
68
+ html = markdown.markdown(markdown_text)
69
+ print(html)
70
+
71
+ return html #f"![YTD Stock Gains]({image_path})<br />![YTD Stock Gains]({image_path_2})<br />![YTD Stock Gains]({image_path_3})<br />![YTD Stock Gains]({image_path_4})<br />![YTD Stock Gains]({image_path_5})<br />"