YaTharThShaRma999
commited on
Commit
•
46a492c
1
Parent(s):
3bd4c57
Update modules/graph_plotter.py
Browse files- modules/graph_plotter.py +2 -2
modules/graph_plotter.py
CHANGED
@@ -33,8 +33,8 @@ def plot_equation(equation):
|
|
33 |
image.save(img_name)
|
34 |
# Returning the image
|
35 |
output_dict = {
|
36 |
-
"llm_output": f"Done. The graph is plotted
|
37 |
-
"
|
38 |
"type": "image",
|
39 |
}
|
40 |
return output_dict
|
|
|
33 |
image.save(img_name)
|
34 |
# Returning the image
|
35 |
output_dict = {
|
36 |
+
"llm_output": f"Done. The graph is plotted and displayed.",
|
37 |
+
"display": {"html": [f'<img src="{img_name}" alt="Plotted graph">'], "metadata": equation}
|
38 |
"type": "image",
|
39 |
}
|
40 |
return output_dict
|