Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ def execute_jupyter_agent(sytem_prompt, user_input, max_new_tokens, model, messa
|
|
48 |
|
49 |
def clear(state):
|
50 |
state = []
|
51 |
-
return update_notebook_display(create_base_notebook([])), state
|
52 |
|
53 |
css = """
|
54 |
#component-0 {
|
@@ -70,7 +70,7 @@ css = """
|
|
70 |
# Create the interface
|
71 |
with gr.Blocks(css=css) as demo:
|
72 |
state = gr.State(value=[])
|
73 |
-
html_output = gr.HTML(value=update_notebook_display(create_base_notebook([])))
|
74 |
with gr.Row():
|
75 |
user_input = gr.Textbox(value="Solve the Lotka-Volterra equation and plot the results.", lines=3)
|
76 |
with gr.Row():
|
|
|
48 |
|
49 |
def clear(state):
|
50 |
state = []
|
51 |
+
return update_notebook_display(create_base_notebook([])[0]), state
|
52 |
|
53 |
css = """
|
54 |
#component-0 {
|
|
|
70 |
# Create the interface
|
71 |
with gr.Blocks(css=css) as demo:
|
72 |
state = gr.State(value=[])
|
73 |
+
html_output = gr.HTML(value=update_notebook_display(create_base_notebook([])[0]))
|
74 |
with gr.Row():
|
75 |
user_input = gr.Textbox(value="Solve the Lotka-Volterra equation and plot the results.", lines=3)
|
76 |
with gr.Row():
|