Spaces:
Paused
Paused
Commit
β’
eb191cf
1
Parent(s):
26a0ac1
Update app.py
Browse files
app.py
CHANGED
@@ -320,25 +320,26 @@ with gr.Blocks(css="custom.css") as demo:
|
|
320 |
)
|
321 |
selected_state = gr.State()
|
322 |
with gr.Row(elem_id="main_app"):
|
323 |
-
with gr.
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
|
|
342 |
with gr.Row():
|
343 |
prompt = gr.Textbox(label="Prompt", show_label=False, lines=1, max_lines=1, placeholder="A person", elem_id="prompt")
|
344 |
button = gr.Button("Run", elem_id="run_button")
|
|
|
320 |
)
|
321 |
selected_state = gr.State()
|
322 |
with gr.Row(elem_id="main_app"):
|
323 |
+
with gr.Column(scale=3)
|
324 |
+
with gr.Group(elem_id="gallery_box"):
|
325 |
+
photo = gr.Image(label="Upload a picture of yourself", interactive=True, type="pil")
|
326 |
+
selected_loras = gr.Gallery(label="Selected LoRAs", height=80, show_share_button=False, visible=False, elem_id="gallery_selected", )
|
327 |
+
order_gallery = gr.Radio(choices=["random", "likes"], value="random", label="Order by", elem_id="order_radio")
|
328 |
+
#new_gallery = gr.Gallery(
|
329 |
+
# label="New LoRAs",
|
330 |
+
# elem_id="gallery_new",
|
331 |
+
# columns=3,
|
332 |
+
# value=[(item["image"], item["title"]) for item in sdxl_loras_raw_new], allow_preview=False, show_share_button=False)
|
333 |
+
gallery = gr.Gallery(
|
334 |
+
#value=[(item["image"], item["title"]) for item in sdxl_loras],
|
335 |
+
label="Style gallery",
|
336 |
+
allow_preview=False,
|
337 |
+
columns=4,
|
338 |
+
elem_id="gallery",
|
339 |
+
show_share_button=False,
|
340 |
+
height=784
|
341 |
+
)
|
342 |
+
with gr.Column(scale=2):
|
343 |
with gr.Row():
|
344 |
prompt = gr.Textbox(label="Prompt", show_label=False, lines=1, max_lines=1, placeholder="A person", elem_id="prompt")
|
345 |
button = gr.Button("Run", elem_id="run_button")
|