YaTharThShaRma999 commited on
Commit
46a492c
1 Parent(s): 3bd4c57

Update modules/graph_plotter.py

Browse files
Files changed (1) hide show
  1. 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, displayed, and saved. The graph is stored as pil image variable {random_num}. It is also saved as {img_name}",
37
- "real_output": {"display": image, "name": random_num, "metadata": equation, "file_name": img_name, "saved": True}
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