Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -772,24 +772,24 @@ with gr.Blocks(theme=custom_theme, css=css, delete_cache=(60, 3600)) as app:
|
|
| 772 |
with gr.Tab(label="Generate"):
|
| 773 |
# Prompt and Generate Button - 비율 조정
|
| 774 |
with gr.Row():
|
| 775 |
-
with gr.Column(scale=
|
| 776 |
prompt = gr.Textbox(label="Prompt", lines=1, placeholder="Type a prompt after selecting a LoRA")
|
| 777 |
-
with gr.Column(scale=
|
| 778 |
generate_button = gr.Button("Generate", variant="primary", elem_classes=["button_total"])
|
| 779 |
|
| 780 |
# LoRA Selection Area - 비율 조정
|
| 781 |
with gr.Row(elem_id="loaded_loras"):
|
| 782 |
-
with gr.Column(scale=
|
| 783 |
randomize_button = gr.Button("🎲", variant="secondary", scale=1, elem_id="random_btn")
|
| 784 |
|
| 785 |
# LoRA 1 - 비율 조정
|
| 786 |
-
with gr.Column(scale=
|
| 787 |
with gr.Row():
|
| 788 |
-
with gr.Column(scale=0, min_width=
|
| 789 |
lora_image_1 = gr.Image(label="LoRA 1 Image", interactive=False, min_width=40, width=40, show_label=False, show_share_button=False, show_download_button=False, show_fullscreen_button=False, height=40)
|
| 790 |
-
with gr.Column(scale=
|
| 791 |
selected_info_1 = gr.Markdown("Select a LoRA 1")
|
| 792 |
-
with gr.Column(scale=
|
| 793 |
lora_scale_1 = gr.Slider(label="LoRA 1 Scale", minimum=0, maximum=3, step=0.01, value=1.15)
|
| 794 |
with gr.Row():
|
| 795 |
remove_button_1 = gr.Button("Remove", size="sm")
|
|
@@ -797,11 +797,11 @@ with gr.Blocks(theme=custom_theme, css=css, delete_cache=(60, 3600)) as app:
|
|
| 797 |
# LoRA 2 - 비율 조정
|
| 798 |
with gr.Column(scale=6):
|
| 799 |
with gr.Row():
|
| 800 |
-
with gr.Column(scale=0, min_width=
|
| 801 |
lora_image_2 = gr.Image(label="LoRA 2 Image", interactive=False, min_width=40, width=40, show_label=False, show_share_button=False, show_download_button=False, show_fullscreen_button=False, height=40)
|
| 802 |
-
with gr.Column(scale=
|
| 803 |
selected_info_2 = gr.Markdown("Select a LoRA 2")
|
| 804 |
-
with gr.Column(scale=
|
| 805 |
lora_scale_2 = gr.Slider(label="LoRA 2 Scale", minimum=0, maximum=3, step=0.01, value=1.15)
|
| 806 |
with gr.Row():
|
| 807 |
remove_button_2 = gr.Button("Remove", size="sm")
|
|
@@ -809,11 +809,11 @@ with gr.Blocks(theme=custom_theme, css=css, delete_cache=(60, 3600)) as app:
|
|
| 809 |
# LoRA 3 - 비율 조정
|
| 810 |
with gr.Column(scale=6):
|
| 811 |
with gr.Row():
|
| 812 |
-
with gr.Column(scale=0, min_width=
|
| 813 |
lora_image_3 = gr.Image(label="LoRA 3 Image", interactive=False, min_width=40, width=40, show_label=False, show_share_button=False, show_download_button=False, show_fullscreen_button=False, height=40)
|
| 814 |
-
with gr.Column(scale=
|
| 815 |
selected_info_3 = gr.Markdown("Select a LoRA 3")
|
| 816 |
-
with gr.Column(scale=
|
| 817 |
lora_scale_3 = gr.Slider(label="LoRA 3 Scale", minimum=0, maximum=3, step=0.01, value=1.15)
|
| 818 |
with gr.Row():
|
| 819 |
remove_button_3 = gr.Button("Remove", size="sm")
|
|
|
|
| 772 |
with gr.Tab(label="Generate"):
|
| 773 |
# Prompt and Generate Button - 비율 조정
|
| 774 |
with gr.Row():
|
| 775 |
+
with gr.Column(scale=3.6):
|
| 776 |
prompt = gr.Textbox(label="Prompt", lines=1, placeholder="Type a prompt after selecting a LoRA")
|
| 777 |
+
with gr.Column(scale=0.9):
|
| 778 |
generate_button = gr.Button("Generate", variant="primary", elem_classes=["button_total"])
|
| 779 |
|
| 780 |
# LoRA Selection Area - 비율 조정
|
| 781 |
with gr.Row(elem_id="loaded_loras"):
|
| 782 |
+
with gr.Column(scale=0.9, min_width=18):
|
| 783 |
randomize_button = gr.Button("🎲", variant="secondary", scale=1, elem_id="random_btn")
|
| 784 |
|
| 785 |
# LoRA 1 - 비율 조정
|
| 786 |
+
with gr.Column(scale=5.4):
|
| 787 |
with gr.Row():
|
| 788 |
+
with gr.Column(scale=0, min_width=36):
|
| 789 |
lora_image_1 = gr.Image(label="LoRA 1 Image", interactive=False, min_width=40, width=40, show_label=False, show_share_button=False, show_download_button=False, show_fullscreen_button=False, height=40)
|
| 790 |
+
with gr.Column(scale=2.7, min_width=72):
|
| 791 |
selected_info_1 = gr.Markdown("Select a LoRA 1")
|
| 792 |
+
with gr.Column(scale=3.6, min_width=36):
|
| 793 |
lora_scale_1 = gr.Slider(label="LoRA 1 Scale", minimum=0, maximum=3, step=0.01, value=1.15)
|
| 794 |
with gr.Row():
|
| 795 |
remove_button_1 = gr.Button("Remove", size="sm")
|
|
|
|
| 797 |
# LoRA 2 - 비율 조정
|
| 798 |
with gr.Column(scale=6):
|
| 799 |
with gr.Row():
|
| 800 |
+
with gr.Column(scale=0, min_width=36):
|
| 801 |
lora_image_2 = gr.Image(label="LoRA 2 Image", interactive=False, min_width=40, width=40, show_label=False, show_share_button=False, show_download_button=False, show_fullscreen_button=False, height=40)
|
| 802 |
+
with gr.Column(scale=2.7, min_width=72):
|
| 803 |
selected_info_2 = gr.Markdown("Select a LoRA 2")
|
| 804 |
+
with gr.Column(scale=3.6, min_width=36):
|
| 805 |
lora_scale_2 = gr.Slider(label="LoRA 2 Scale", minimum=0, maximum=3, step=0.01, value=1.15)
|
| 806 |
with gr.Row():
|
| 807 |
remove_button_2 = gr.Button("Remove", size="sm")
|
|
|
|
| 809 |
# LoRA 3 - 비율 조정
|
| 810 |
with gr.Column(scale=6):
|
| 811 |
with gr.Row():
|
| 812 |
+
with gr.Column(scale=0, min_width=36):
|
| 813 |
lora_image_3 = gr.Image(label="LoRA 3 Image", interactive=False, min_width=40, width=40, show_label=False, show_share_button=False, show_download_button=False, show_fullscreen_button=False, height=40)
|
| 814 |
+
with gr.Column(scale=2.7, min_width=72):
|
| 815 |
selected_info_3 = gr.Markdown("Select a LoRA 3")
|
| 816 |
+
with gr.Column(scale=3.6, min_width=36):
|
| 817 |
lora_scale_3 = gr.Slider(label="LoRA 3 Scale", minimum=0, maximum=3, step=0.01, value=1.15)
|
| 818 |
with gr.Row():
|
| 819 |
remove_button_3 = gr.Button("Remove", size="sm")
|