Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -37,9 +37,8 @@ def execute_jupyter_agent(sytem_prompt, user_input, max_new_tokens, model,files,
|
|
37 |
for filepath in files:
|
38 |
with open(filepath, "rb") as file:
|
39 |
print(f"uploading {filepath}...")
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
# Initialize message_history if it doesn't exist
|
44 |
if len(message_history)==0:
|
45 |
message_history.append({"role": "system", "content": sytem_prompt})
|
|
|
37 |
for filepath in files:
|
38 |
with open(filepath, "rb") as file:
|
39 |
print(f"uploading {filepath}...")
|
40 |
+
sbx.files.write(filepath, file)
|
41 |
+
|
|
|
42 |
# Initialize message_history if it doesn't exist
|
43 |
if len(message_history)==0:
|
44 |
message_history.append({"role": "system", "content": sytem_prompt})
|