lvwerra HF staff commited on
Commit
a9729e7
·
verified ·
1 Parent(s): 12aabf0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -47,7 +47,8 @@ def execute_jupyter_agent(sytem_prompt, user_input, max_new_tokens):
47
  print("history", execute_jupyter_agent.message_history)
48
 
49
 
50
- for notebook_html, message_history in run_interactive_notebook(client, model, messages, sbx, max_new_tokens=max_new_tokens):
 
51
  yield notebook_html
52
 
53
 
 
47
  print("history", execute_jupyter_agent.message_history)
48
 
49
 
50
+ for notebook_html, message_history in run_interactive_notebook(client, model, execute_jupyter_agent.message_history, sbx, max_new_tokens=max_new_tokens):
51
+ execute_jupyter_agent.message_history = message_history
52
  yield notebook_html
53
 
54