From 3a5db4dd5c7a82356ad1a5c2e07ca2ad000013df Mon Sep 17 00:00:00 2001 From: Masahiko AMANO Date: Thu, 4 Jun 2026 21:17:54 +0300 Subject: [PATCH] feat(app): move generate button next to the output panels The button sat at the bottom of a long form while results render in the right column, forcing a scroll up/down on every run. Place it at the top of the output column so repeated generation needs no scrolling. Co-Authored-By: Claude Opus 4.8 --- app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 6eb050f..12f8c59 100644 --- a/app.py +++ b/app.py @@ -300,10 +300,11 @@ def build_ui() -> gr.Blocks: label="Seed (пусто = случайно)") tempo = gr.Number(value=90, precision=0, label="Tempo (BPM)") - run = gr.Button("Сгенерировать", variant="primary") - # ---- Right: outputs ------------------------------------------- with gr.Column(scale=1): + # Button lives with the outputs so repeated generation needs no + # scrolling back up to the form. + run = gr.Button("Сгенерировать", variant="primary") status = gr.Markdown() bars_out = gr.Textbox(label="Сетка аккордов", lines=10, interactive=False)