Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,6 +5,7 @@ from e2b_code_interpreter import Sandbox
|
|
| 5 |
|
| 6 |
from utils import run_interactive_notebook, create_base_notebook, update_notebook_display
|
| 7 |
|
|
|
|
| 8 |
message_history = None
|
| 9 |
|
| 10 |
E2B_API_KEY = os.environ['E2B_API_KEY']
|
|
@@ -34,7 +35,7 @@ def execute_jupyter_agent(sytem_prompt, user_input, max_new_tokens):
|
|
| 34 |
model = "meta-llama/Llama-3.1-8B-Instruct"
|
| 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},
|
|
|
|
| 5 |
|
| 6 |
from utils import run_interactive_notebook, create_base_notebook, update_notebook_display
|
| 7 |
|
| 8 |
+
|
| 9 |
message_history = None
|
| 10 |
|
| 11 |
E2B_API_KEY = os.environ['E2B_API_KEY']
|
|
|
|
| 35 |
model = "meta-llama/Llama-3.1-8B-Instruct"
|
| 36 |
|
| 37 |
sbx = Sandbox(api_key=E2B_API_KEY)
|
| 38 |
+
print("history", message_history)
|
| 39 |
if message_history is None:
|
| 40 |
message_history = [
|
| 41 |
{"role": "system", "content": sytem_prompt},
|