Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -606,8 +606,17 @@ with gr.Blocks(theme="Nymbo/Nymbo_Theme", css=css, delete_cache=(60, 3600)) as a
|
|
606 |
lora_scale_3 = gr.Slider(label="LoRA 3 Scale", minimum=0, maximum=3, step=0.01, value=1.15)
|
607 |
with gr.Row():
|
608 |
remove_button_3 = gr.Button("Remove", size="sm")
|
609 |
-
|
610 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
611 |
with gr.Column():
|
612 |
with gr.Group():
|
613 |
with gr.Row(elem_id="custom_lora_structure"):
|
@@ -617,11 +626,13 @@ with gr.Blocks(theme="Nymbo/Nymbo_Theme", css=css, delete_cache=(60, 3600)) as a
|
|
617 |
gr.Markdown("[Check the list of FLUX LoRAs](https://huggingface.co/models?other=base_model:adapter:black-forest-labs/FLUX.1-dev)", elem_id="lora_list")
|
618 |
gallery = gr.Gallery(
|
619 |
[(item["image"], item["title"]) for item in loras],
|
620 |
-
label="
|
621 |
allow_preview=False,
|
622 |
-
columns=
|
623 |
-
elem_id="gallery"
|
624 |
-
|
|
|
|
|
625 |
with gr.Column():
|
626 |
progress_bar = gr.Markdown(elem_id="progress", visible=False)
|
627 |
result = gr.Image(label="Generated Image", interactive=False)
|
|
|
606 |
lora_scale_3 = gr.Slider(label="LoRA 3 Scale", minimum=0, maximum=3, step=0.01, value=1.15)
|
607 |
with gr.Row():
|
608 |
remove_button_3 = gr.Button("Remove", size="sm")
|
609 |
+
|
610 |
+
# result와 history_gallery가 있는 Column 부분을 수정
|
611 |
+
with gr.Column():
|
612 |
+
progress_bar = gr.Markdown(elem_id="progress", visible=False)
|
613 |
+
result = gr.Image(label="Generated Image", interactive=False)
|
614 |
+
with gr.Accordion("History", open=False):
|
615 |
+
history_gallery = gr.Gallery(label="History", columns=6, object_fit="contain", interactive=False)
|
616 |
+
|
617 |
+
# gallery를 별도의 Row로 분리하여 하단에 배치
|
618 |
+
with gr.Row(elem_id="lora_gallery"):
|
619 |
+
|
620 |
with gr.Column():
|
621 |
with gr.Group():
|
622 |
with gr.Row(elem_id="custom_lora_structure"):
|
|
|
626 |
gr.Markdown("[Check the list of FLUX LoRAs](https://huggingface.co/models?other=base_model:adapter:black-forest-labs/FLUX.1-dev)", elem_id="lora_list")
|
627 |
gallery = gr.Gallery(
|
628 |
[(item["image"], item["title"]) for item in loras],
|
629 |
+
label="LoRA Explorer Gallery",
|
630 |
allow_preview=False,
|
631 |
+
columns=6, # 한 줄에 6개씩 표시
|
632 |
+
elem_id="gallery",
|
633 |
+
height="auto", # 높이 자동 조정
|
634 |
+
object_fit="contain" # 이미지 비율 유지
|
635 |
+
|
636 |
with gr.Column():
|
637 |
progress_bar = gr.Markdown(elem_id="progress", visible=False)
|
638 |
result = gr.Image(label="Generated Image", interactive=False)
|