lvwerra HF staff commited on
Commit
a2ca183
·
verified ·
1 Parent(s): 1cb1025

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -29,7 +29,7 @@ Always run the code at each step and repeat the steps if necessary until you rea
29
  NEVER ASSUME, ALWAYS VERIFY!"""
30
 
31
 
32
- def execute_jupyter_agent(sytem_prompt, user_input, max_tokens):
33
  client = InferenceClient(api_key=HF_TOKEN)
34
  model = "meta-llama/Llama-3.1-8B-Instruct"
35
 
@@ -40,7 +40,7 @@ def execute_jupyter_agent(sytem_prompt, user_input, max_tokens):
40
  {"role": "user", "content": user_input}
41
  ]
42
 
43
- for notebook_html, messages in run_interactive_notebook(client, model, messages, sbx, max_tokens):
44
  message_history = messages
45
  yield notebook_html
46
 
 
29
  NEVER ASSUME, ALWAYS VERIFY!"""
30
 
31
 
32
+ def execute_jupyter_agent(sytem_prompt, user_input, max_new_tokens):
33
  client = InferenceClient(api_key=HF_TOKEN)
34
  model = "meta-llama/Llama-3.1-8B-Instruct"
35
 
 
40
  {"role": "user", "content": user_input}
41
  ]
42
 
43
+ for notebook_html, messages in run_interactive_notebook(client, model, messages, sbx, max_new_tokens=max_new_tokens):
44
  message_history = messages
45
  yield notebook_html
46