Skip to content

Commit 3990fa6

Browse files
committed
Improve gradio layout
1 parent be1b6b3 commit 3990fa6

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

agentic/web_ui/gradio_chat.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -315,12 +315,9 @@ async def _run():
315315
with gr.Blocks() as demo:
316316
with gr.Row():
317317
gr.Markdown(f"### libEnsemble Agent   ·   Service: `{_service_label}`")
318-
model_dropdown = gr.Dropdown(
319-
choices=_init_model_choices, value=_init_model_label,
320-
show_label=False, allow_custom_value=True, scale=2, min_width=300
321-
)
322-
with gr.Column(scale=0, min_width=60):
323-
settings_btn = gr.Button("⚙️")
318+
run_btn = gr.Button("Run", variant="primary")
319+
reset_btn = gr.Button("Reset", variant="stop")
320+
settings_btn = gr.Button("⚙️")
324321

325322
agent_dir_state = gr.State(value=str(DEFAULT_AGENT_DIR))
326323
scripts_dir_state = gr.State(value=str(DEFAULT_TESTS_DIR))
@@ -348,8 +345,10 @@ async def _run():
348345
label="Scripts Directory", choices=_init_tests,
349346
value=NONE_OPTION, allow_custom_value=True, scale=2
350347
)
351-
run_btn = gr.Button("Run", variant="primary")
352-
reset_btn = gr.Button("Reset", variant="stop")
348+
model_dropdown = gr.Dropdown(
349+
label="Model", choices=_init_model_choices, value=_init_model_label,
350+
allow_custom_value=True, scale=2, min_width=300
351+
)
353352

354353
chatbot = gr.Chatbot(label="Agent", height=400)
355354
with gr.Row():

0 commit comments

Comments
 (0)