lvwerra HF staff commited on
Commit
571d707
·
verified ·
1 Parent(s): 69a9c5e

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
utils.py CHANGED
@@ -153,7 +153,7 @@ def create_base_notebook(messages):
153
 
154
  elif message["role"] == "ipython":
155
  code_cell_counter +=1
156
- base_notebook["cells"][-1]["outputs"].append(message["nbformat"])
157
  base_notebook["cells"][-1]["execution_count"] = code_cell_counter
158
 
159
  elif message["role"] == "assistant" and "tool_calls" not in message:
 
153
 
154
  elif message["role"] == "ipython":
155
  code_cell_counter +=1
156
+ base_notebook["cells"][-1]["outputs"] = message["nbformat"]
157
  base_notebook["cells"][-1]["execution_count"] = code_cell_counter
158
 
159
  elif message["role"] == "assistant" and "tool_calls" not in message: