Update multi_agent.py
Browse files- 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 |
-
|
|
|
|
|
|
|
|
|
|
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 />"
|