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="")
|
thinking_box = gr.HTML(value="")
|
||||||
chatbot = gr.Chatbot(label="율봇", height=500)
|
chatbot = gr.Chatbot(label="율봇", height=500)
|
||||||
source_box = gr.HTML(value="")
|
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(
|
image_input = gr.Image(
|
||||||
type="filepath",
|
type="filepath",
|
||||||
label="이미지 첨부 (선택)",
|
label="📷 이미지 첨부 (선택)",
|
||||||
sources=["upload", "clipboard"],
|
sources=["upload", "clipboard"],
|
||||||
|
height=160,
|
||||||
scale=1,
|
scale=1,
|
||||||
height=120,
|
|
||||||
)
|
)
|
||||||
with gr.Column(scale=5):
|
gr.HTML("<div></div>", visible=False) # spacer
|
||||||
msg_box = gr.Textbox(
|
|
||||||
placeholder="질문을 입력하세요... (Enter로 전송)",
|
|
||||||
label="",
|
|
||||||
lines=2,
|
|
||||||
autofocus=True,
|
|
||||||
)
|
|
||||||
send_btn = gr.Button("전송", variant="primary")
|
|
||||||
|
|
||||||
with gr.Row():
|
with gr.Row():
|
||||||
audio_input = gr.Audio(
|
audio_input = gr.Audio(
|
||||||
|
|||||||
Reference in New Issue
Block a user