Fix: move image_input to separate row for cleaner layout
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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):
|
||||
image_input = gr.Image(
|
||||
type="filepath",
|
||||
label="이미지 첨부 (선택)",
|
||||
sources=["upload", "clipboard"],
|
||||
scale=1,
|
||||
height=120,
|
||||
)
|
||||
with gr.Column(scale=5):
|
||||
with gr.Row():
|
||||
msg_box = gr.Textbox(
|
||||
placeholder="질문을 입력하세요... (Enter로 전송)",
|
||||
label="",
|
||||
lines=2,
|
||||
scale=5,
|
||||
autofocus=True,
|
||||
)
|
||||
send_btn = gr.Button("전송", variant="primary")
|
||||
send_btn = gr.Button("전송", variant="primary", scale=1)
|
||||
with gr.Row():
|
||||
image_input = gr.Image(
|
||||
type="filepath",
|
||||
label="📷 이미지 첨부 (선택)",
|
||||
sources=["upload", "clipboard"],
|
||||
height=160,
|
||||
scale=1,
|
||||
)
|
||||
gr.HTML("<div></div>", visible=False) # spacer
|
||||
|
||||
with gr.Row():
|
||||
audio_input = gr.Audio(
|
||||
|
||||
Reference in New Issue
Block a user