Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ import gradio as gr
|
|
| 3 |
from huggingface_hub import InferenceClient
|
| 4 |
from e2b_code_interpreter import Sandbox
|
| 5 |
|
| 6 |
-
from utils import run_interactive_notebook
|
| 7 |
|
| 8 |
message_history = None
|
| 9 |
|
|
@@ -64,13 +64,11 @@ css = """
|
|
| 64 |
|
| 65 |
# Create the interface
|
| 66 |
with gr.Blocks(css=css) as demo:
|
| 67 |
-
gr.
|
| 68 |
-
|
| 69 |
with gr.Row():
|
| 70 |
-
user_input = gr.Textbox(
|
| 71 |
|
| 72 |
generate_btn = gr.Button("Let's go!")
|
| 73 |
-
output = gr.HTML(label="Jupyter Notebook")
|
| 74 |
|
| 75 |
with gr.Accordion("Advanced Settings", open=False):
|
| 76 |
system_input = gr.Textbox(
|
|
|
|
| 3 |
from huggingface_hub import InferenceClient
|
| 4 |
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 |
|
|
|
|
| 64 |
|
| 65 |
# Create the interface
|
| 66 |
with gr.Blocks(css=css) as demo:
|
| 67 |
+
output = gr.HTML(value=update_notebook_display(create_base_notebook([])))
|
|
|
|
| 68 |
with gr.Row():
|
| 69 |
+
user_input = gr.Textbox(value="Solve the Lotka-Volterra equation and plot the results.", lines=3)
|
| 70 |
|
| 71 |
generate_btn = gr.Button("Let's go!")
|
|
|
|
| 72 |
|
| 73 |
with gr.Accordion("Advanced Settings", open=False):
|
| 74 |
system_input = gr.Textbox(
|