lvwerra HF staff commited on
Commit
5b8a275
·
verified ·
1 Parent(s): bef42f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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
- # Upload file to sandbox
41
- sbx.files.write(filepath, file)
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})