DrishtiSharma commited on
Commit
feae486
·
verified ·
1 Parent(s): 206de1d

Update graph.py

Browse files
Files changed (1) hide show
  1. graph.py +3 -2
graph.py CHANGED
@@ -166,9 +166,10 @@ class EssayWriter:
166
  dot.edge("Edit Essay", "✅ Done")
167
  dot.edge("Answer", "✅ Done")
168
 
169
- # Save Graph
170
- dot.render("graph") # Saves as 'graph.png'
171
 
172
  except Exception as e:
173
  print(f"❌ Error generating workflow visualization: {e}")
174
 
 
 
166
  dot.edge("Edit Essay", "✅ Done")
167
  dot.edge("Answer", "✅ Done")
168
 
169
+ # Save Graph explicitly in PNG format
170
+ dot.render("graph", format="png", cleanup=True)
171
 
172
  except Exception as e:
173
  print(f"❌ Error generating workflow visualization: {e}")
174
 
175
+