Skip to content

Commit

Permalink
fix(mermaid): added correct output image path
Browse files Browse the repository at this point in the history
  • Loading branch information
PeriniM committed Oct 2, 2024
1 parent 2e3ca0f commit ff42d5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion brickllm/graphs/brickschema_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def display(self, filename="graph.png"):
raise ValueError("Graph is not compiled yet. Please compile the graph first.")

# Save the image to the specified file
self.graph.get_graph().draw_mermaid_png(filename)
self.graph.get_graph().draw_mermaid_png(output_file_path=filename)

# Open the image using PIL (Pillow)
if os.path.exists(filename):
Expand Down
2 changes: 1 addition & 1 deletion examples/brickschema_ttl.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

# Display the graph
# brick_graph.display()
brick_graph.display()

# Run the graph without streaming
brick_graph.run(
Expand Down

0 comments on commit ff42d5a

Please sign in to comment.