Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -675,7 +675,7 @@ input:focus, textarea:focus {
|
|
| 675 |
'''
|
| 676 |
|
| 677 |
|
| 678 |
-
with gr.Blocks(css=css, delete_cache=(60, 3600)) as app:
|
| 679 |
loras_state = gr.State(loras)
|
| 680 |
selected_indices = gr.State([])
|
| 681 |
|
|
@@ -687,13 +687,13 @@ with gr.Blocks(css=css, delete_cache=(60, 3600)) as app:
|
|
| 687 |
"""
|
| 688 |
)
|
| 689 |
|
| 690 |
-
#
|
| 691 |
-
with gr.Row(
|
| 692 |
gallery = gr.Gallery(
|
| 693 |
value=[(item["image"], item["title"]) for item in loras],
|
| 694 |
label="LoRA Explorer Gallery",
|
| 695 |
columns=6,
|
| 696 |
-
rows=None,
|
| 697 |
elem_id="gallery",
|
| 698 |
height=800,
|
| 699 |
object_fit="cover",
|
|
@@ -702,10 +702,8 @@ with gr.Blocks(css=css, delete_cache=(60, 3600)) as app:
|
|
| 702 |
show_share_button=False,
|
| 703 |
container=True,
|
| 704 |
scale=1,
|
| 705 |
-
min_width=1200
|
| 706 |
-
)
|
| 707 |
-
|
| 708 |
-
|
| 709 |
|
| 710 |
with gr.Tab(label="Generate"):
|
| 711 |
# Prompt and Generate Button
|
|
|
|
| 675 |
'''
|
| 676 |
|
| 677 |
|
| 678 |
+
with gr.Blocks(theme=custom_theme, css=css, delete_cache=(60, 3600)) as app:
|
| 679 |
loras_state = gr.State(loras)
|
| 680 |
selected_indices = gr.State([])
|
| 681 |
|
|
|
|
| 687 |
"""
|
| 688 |
)
|
| 689 |
|
| 690 |
+
# Row에서 theme 매개변수 제거
|
| 691 |
+
with gr.Row(elem_id="lora_gallery", equal_height=True):
|
| 692 |
gallery = gr.Gallery(
|
| 693 |
value=[(item["image"], item["title"]) for item in loras],
|
| 694 |
label="LoRA Explorer Gallery",
|
| 695 |
columns=6,
|
| 696 |
+
rows=None,
|
| 697 |
elem_id="gallery",
|
| 698 |
height=800,
|
| 699 |
object_fit="cover",
|
|
|
|
| 702 |
show_share_button=False,
|
| 703 |
container=True,
|
| 704 |
scale=1,
|
| 705 |
+
min_width=1200
|
| 706 |
+
)
|
|
|
|
|
|
|
| 707 |
|
| 708 |
with gr.Tab(label="Generate"):
|
| 709 |
# Prompt and Generate Button
|