lvwerra HF staff commited on
Commit
5d46926
·
verified ·
1 Parent(s): 2275821

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -39,6 +39,8 @@ def execute_jupyter_agent(sytem_prompt, user_input, max_new_tokens, message_hist
39
  message_history.append({"role": "system", "content": sytem_prompt})
40
  message_history.append({"role": "user", "content": user_input})
41
 
 
 
42
  for notebook_html, messages in run_interactive_notebook(client, model, message_history, sbx, max_new_tokens=max_new_tokens):
43
  message_history = messages
44
  yield notebook_html, message_history
 
39
  message_history.append({"role": "system", "content": sytem_prompt})
40
  message_history.append({"role": "user", "content": user_input})
41
 
42
+ print("history:", message_history)
43
+
44
  for notebook_html, messages in run_interactive_notebook(client, model, message_history, sbx, max_new_tokens=max_new_tokens):
45
  message_history = messages
46
  yield notebook_html, message_history