Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def execute_jupyter_agent(sytem_prompt, user_input, max_new_tokens):
|
|
35 |
|
36 |
sbx = Sandbox(api_key=E2B_API_KEY)
|
37 |
|
38 |
-
if message_history
|
39 |
message_history = [
|
40 |
{"role": "system", "content": sytem_prompt},
|
41 |
{"role": "user", "content": user_input}
|
|
|
35 |
|
36 |
sbx = Sandbox(api_key=E2B_API_KEY)
|
37 |
|
38 |
+
if message_history is None:
|
39 |
message_history = [
|
40 |
{"role": "system", "content": sytem_prompt},
|
41 |
{"role": "user", "content": user_input}
|