Spaces:
Running
Running
Update utils.py
Browse files
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"]
|
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:
|