Skip to content

Commit be1b6b3

Browse files
committed
Relocate output underneath chatbot
1 parent 4d4cd56 commit be1b6b3

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

agentic/web_ui/gradio_chat.py

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -351,21 +351,23 @@ async def _run():
351351
run_btn = gr.Button("Run", variant="primary")
352352
reset_btn = gr.Button("Reset", variant="stop")
353353

354+
chatbot = gr.Chatbot(label="Agent", height=400)
354355
with gr.Row():
355-
with gr.Column(scale=3):
356-
chatbot = gr.Chatbot(label="Agent", height=400)
357-
with gr.Row():
358-
chat_input = gr.Textbox(
359-
placeholder="Type prompt or response here...",
360-
show_label=False, scale=4, lines=1
361-
)
362-
send_btn = gr.Button("Send", scale=0, min_width=80)
363-
with gr.Column(scale=2):
356+
chat_input = gr.Textbox(
357+
placeholder="Type prompt or response here...",
358+
show_label=False, scale=4, lines=1
359+
)
360+
send_btn = gr.Button("Send", scale=0, min_width=80)
361+
362+
with gr.Tabs():
363+
with gr.Tab("Scripts"):
364364
version_dropdown = gr.Dropdown(
365365
label="libE scripts", choices=_init_versions, value="latest"
366366
)
367367
script_file_dropdown = gr.Dropdown(label="Generated Scripts", choices=[], value=None)
368368
output_script = gr.Code(label="Script Content", language="python", lines=10)
369+
with gr.Tab("Graphs"):
370+
graphs_placeholder = gr.Markdown("*Graphs will appear here.*")
369371

370372
# --- Helpers ---
371373

0 commit comments

Comments
 (0)