Spaces:
Runtime error
Runtime error
Commit
•
b819231
1
Parent(s):
145660e
Update app.py
Browse files
app.py
CHANGED
@@ -45,6 +45,7 @@ css = '''
|
|
45 |
#title{text-align:center;}
|
46 |
#title h1{font-size: 250%}
|
47 |
.selected_random img{object-fit: cover}
|
|
|
48 |
.plus_column{align-self: center}
|
49 |
.plus_button{font-size: 235% !important; text-align: center;margin-bottom: 19px}
|
50 |
#prompt input{width: calc(100% - 160px);border-top-right-radius: 0px;border-bottom-right-radius: 0px;}
|
@@ -103,7 +104,7 @@ with gr.Blocks(css=css) as demo:
|
|
103 |
shuffled_items = gr.State()
|
104 |
title = gr.HTML(
|
105 |
'''<h1>LoRA Roulette 🎲</h1>
|
106 |
-
<p>This
|
107 |
''',
|
108 |
elem_id="title"
|
109 |
)
|
@@ -111,12 +112,12 @@ with gr.Blocks(css=css) as demo:
|
|
111 |
with gr.Column(min_width=10, scale=16, elem_classes="plus_column"):
|
112 |
with gr.Row():
|
113 |
with gr.Column(min_width=10, scale=4, elem_classes="random_column"):
|
114 |
-
lora_1 = gr.Image(interactive=False, height=150, elem_classes="selected_random")
|
115 |
lora_1_prompt = gr.Markdown(visible=False)
|
116 |
with gr.Column(min_width=10, scale=1, elem_classes="plus_column"):
|
117 |
plus = gr.HTML("+", elem_classes="plus_button")
|
118 |
with gr.Column(min_width=10, scale=4, elem_classes="random_column"):
|
119 |
-
lora_2 = gr.Image(interactive=False, height=150, elem_classes="selected_random")
|
120 |
lora_2_prompt = gr.Markdown(visible=False)
|
121 |
with gr.Column(min_width=10, scale=2, elem_classes="plus_column"):
|
122 |
equal = gr.HTML("=", elem_classes="plus_button")
|
|
|
45 |
#title{text-align:center;}
|
46 |
#title h1{font-size: 250%}
|
47 |
.selected_random img{object-fit: cover}
|
48 |
+
.selected_random [data-testid="block-label"] span{display: none}
|
49 |
.plus_column{align-self: center}
|
50 |
.plus_button{font-size: 235% !important; text-align: center;margin-bottom: 19px}
|
51 |
#prompt input{width: calc(100% - 160px);border-top-right-radius: 0px;border-bottom-right-radius: 0px;}
|
|
|
104 |
shuffled_items = gr.State()
|
105 |
title = gr.HTML(
|
106 |
'''<h1>LoRA Roulette 🎲</h1>
|
107 |
+
<p>This random LoRAs are loaded into SDXL, can you find a fun way to combine them? 🎨</p>
|
108 |
''',
|
109 |
elem_id="title"
|
110 |
)
|
|
|
112 |
with gr.Column(min_width=10, scale=16, elem_classes="plus_column"):
|
113 |
with gr.Row():
|
114 |
with gr.Column(min_width=10, scale=4, elem_classes="random_column"):
|
115 |
+
lora_1 = gr.Image(interactive=False, height=150, elem_classes="selected_random", show_share_button=False, show_download_button=False)
|
116 |
lora_1_prompt = gr.Markdown(visible=False)
|
117 |
with gr.Column(min_width=10, scale=1, elem_classes="plus_column"):
|
118 |
plus = gr.HTML("+", elem_classes="plus_button")
|
119 |
with gr.Column(min_width=10, scale=4, elem_classes="random_column"):
|
120 |
+
lora_2 = gr.Image(interactive=False, height=150, elem_classes="selected_random", show_share_button=False, show_download_button=False)
|
121 |
lora_2_prompt = gr.Markdown(visible=False)
|
122 |
with gr.Column(min_width=10, scale=2, elem_classes="plus_column"):
|
123 |
equal = gr.HTML("=", elem_classes="plus_button")
|