madhurjindal commited on
Commit
1161442
1 Parent(s): 40fc2b7

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +4 -4
utils.py CHANGED
@@ -170,11 +170,11 @@ def extract_mermaid_and_generate_graph(state: GraphState):
170
  # Save the mermaid code in a file with the current timestamp
171
  # print(response)
172
  file_name = f"mermaid/{int(time.time())}.png"
173
- render_mermaid(response, file_name)
174
 
175
- # Read image to return as output
176
- img = Image.open(file_name)
177
- return {"messages": [AIMessage(response)], "final_graph": img}
178
 
179
 
180
  def need_to_update_working_knowledge(state: GraphState):
 
170
  # Save the mermaid code in a file with the current timestamp
171
  # print(response)
172
  file_name = f"mermaid/{int(time.time())}.png"
173
+ # render_mermaid(response, file_name)
174
 
175
+ # # Read image to return as output
176
+ # img = Image.open(file_name)
177
+ return {"messages": [AIMessage(response)], "final_graph": None}
178
 
179
 
180
  def need_to_update_working_knowledge(state: GraphState):