lvwerra HF staff commited on
Commit
4a6d7a3
·
verified ·
1 Parent(s): 751e7d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,8 +19,8 @@ def execute_jupyter_agent(sytem_prompt, user_input):
19
  sbx = Sandbox(api_key=E2B_API_KEY)
20
 
21
  messages = [
22
- {"role": "system", "content": "Environment: ipython\nYou are a helpful coding assistant. Always first explain what you are going to do before writing code."},
23
- {"role": "user", "content": "What is 2+1? Use Python to solve."}
24
  ]
25
 
26
  for notebook_html, messages in run_interactive_notebook(client, model, messages, sbx):
 
19
  sbx = Sandbox(api_key=E2B_API_KEY)
20
 
21
  messages = [
22
+ {"role": "system", "content": sytem_prompt},
23
+ {"role": "user", "content": user_input}
24
  ]
25
 
26
  for notebook_html, messages in run_interactive_notebook(client, model, messages, sbx):