DrishtiSharma commited on
Commit
4bdd5cc
·
verified ·
1 Parent(s): d759e2a

Update graph.py

Browse files
Files changed (1) hide show
  1. graph.py +2 -2
graph.py CHANGED
@@ -179,7 +179,7 @@ class EssayWriter:
179
  if os.path.exists(graph_path):
180
  with open(log_file, "w") as f:
181
  f.write("✅ Graphviz successfully generated /tmp/graph.png\n")
182
- print("✅ Graphviz successfully generated /tmp/graph.png") # Debugging print
183
  else:
184
  with open(log_file, "w") as f:
185
  f.write("❌ Graphviz failed to generate /tmp/graph.png\n")
@@ -190,7 +190,7 @@ class EssayWriter:
190
  error_message = f"❌ Error generating workflow visualization: {e}\n"
191
  with open(log_file, "w") as f:
192
  f.write(error_message)
193
- print(error_message) # Print error for debugging in Hugging Face Spaces
194
 
195
 
196
 
 
179
  if os.path.exists(graph_path):
180
  with open(log_file, "w") as f:
181
  f.write("✅ Graphviz successfully generated /tmp/graph.png\n")
182
+ print("✅ Graphviz successfully generated /tmp/graph.png")
183
  else:
184
  with open(log_file, "w") as f:
185
  f.write("❌ Graphviz failed to generate /tmp/graph.png\n")
 
190
  error_message = f"❌ Error generating workflow visualization: {e}\n"
191
  with open(log_file, "w") as f:
192
  f.write(error_message)
193
+ print(error_message)
194
 
195
 
196