Spaces:
Running
Running
Update app.py
Browse files
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,
|
| 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,
|
| 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 |
|