Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -10,9 +10,7 @@ from utils import run_interactive_notebook, create_base_notebook, update_noteboo
|
|
10 |
E2B_API_KEY = os.environ['E2B_API_KEY']
|
11 |
HF_TOKEN = os.environ['HF_TOKEN']
|
12 |
DEFAULT_MAX_TOKENS = 512
|
13 |
-
DEFAULT_SYSTEM_PROMPT = """
|
14 |
-
|
15 |
-
You are a code assistant with access to a ipython interpreter.
|
16 |
You solve tasks step-by-step and rely on code execution results.
|
17 |
Don't make any assumptions about the data but always check the format first.
|
18 |
If you generate code in your response you always run it in the interpreter.
|
@@ -83,7 +81,7 @@ css = """
|
|
83 |
|
84 |
|
85 |
# Create the interface
|
86 |
-
with gr.Blocks() as demo:
|
87 |
state = gr.State(value=[])
|
88 |
html_output = gr.HTML(value=update_notebook_display(create_base_notebook([])[0]))
|
89 |
with gr.Row():
|
|
|
10 |
E2B_API_KEY = os.environ['E2B_API_KEY']
|
11 |
HF_TOKEN = os.environ['HF_TOKEN']
|
12 |
DEFAULT_MAX_TOKENS = 512
|
13 |
+
DEFAULT_SYSTEM_PROMPT = """You are a code assistant with access to a ipython interpreter.
|
|
|
|
|
14 |
You solve tasks step-by-step and rely on code execution results.
|
15 |
Don't make any assumptions about the data but always check the format first.
|
16 |
If you generate code in your response you always run it in the interpreter.
|
|
|
81 |
|
82 |
|
83 |
# Create the interface
|
84 |
+
with gr.Blocks(css=css) as demo:
|
85 |
state = gr.State(value=[])
|
86 |
html_output = gr.HTML(value=update_notebook_display(create_base_notebook([])[0]))
|
87 |
with gr.Row():
|