From 0803479438c1343176613685900f2b7269a154d9 Mon Sep 17 00:00:00 2001 From: sal Date: Tue, 2 Jun 2026 14:04:01 +0900 Subject: [PATCH] Fix: move image_input to separate row for cleaner layout Co-Authored-By: Claude Sonnet 4.6 --- app.py | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/app.py b/app.py index 4be3666..c8015b9 100644 --- a/app.py +++ b/app.py @@ -280,22 +280,23 @@ with gr.Blocks(title="율봇") as demo: thinking_box = gr.HTML(value="") chatbot = gr.Chatbot(label="율봇", height=500) source_box = gr.HTML(value="") - with gr.Row(equal_height=True): + with gr.Row(): + msg_box = gr.Textbox( + placeholder="질문을 입력하세요... (Enter로 전송)", + label="", + scale=5, + autofocus=True, + ) + send_btn = gr.Button("전송", variant="primary", scale=1) + with gr.Row(): image_input = gr.Image( type="filepath", - label="이미지 첨부 (선택)", + label="📷 이미지 첨부 (선택)", sources=["upload", "clipboard"], + height=160, scale=1, - height=120, ) - with gr.Column(scale=5): - msg_box = gr.Textbox( - placeholder="질문을 입력하세요... (Enter로 전송)", - label="", - lines=2, - autofocus=True, - ) - send_btn = gr.Button("전송", variant="primary") + gr.HTML("
", visible=False) # spacer with gr.Row(): audio_input = gr.Audio(