Spaces:
Paused
Paused
Commit
•
8f38828
1
Parent(s):
85ebf25
Update app.py
Browse files
app.py
CHANGED
@@ -328,9 +328,9 @@ with gr.Blocks(css="custom.css") as demo:
|
|
328 |
)
|
329 |
selected_state = gr.State()
|
330 |
with gr.Row(elem_id="main_app"):
|
331 |
-
with gr.Column(scale=
|
332 |
with gr.Group(elem_id="gallery_box"):
|
333 |
-
photo = gr.Image(label="Upload a picture of yourself", interactive=True, type="pil")
|
334 |
selected_loras = gr.Gallery(label="Selected LoRAs", height=80, show_share_button=False, visible=False, elem_id="gallery_selected", )
|
335 |
order_gallery = gr.Radio(choices=["random", "likes"], value="random", label="Order by", elem_id="order_radio")
|
336 |
#new_gallery = gr.Gallery(
|
@@ -342,12 +342,12 @@ with gr.Blocks(css="custom.css") as demo:
|
|
342 |
#value=[(item["image"], item["title"]) for item in sdxl_loras],
|
343 |
label="Style gallery",
|
344 |
allow_preview=False,
|
345 |
-
columns=
|
346 |
elem_id="gallery",
|
347 |
show_share_button=False,
|
348 |
height=784
|
349 |
)
|
350 |
-
with gr.Column(scale=
|
351 |
with gr.Row():
|
352 |
prompt = gr.Textbox(label="Prompt", show_label=False, lines=1, max_lines=1, info="Describe your subject (optional)", value="A person", elem_id="prompt")
|
353 |
button = gr.Button("Run", elem_id="run_button")
|
|
|
328 |
)
|
329 |
selected_state = gr.State()
|
330 |
with gr.Row(elem_id="main_app"):
|
331 |
+
with gr.Column(scale=4):
|
332 |
with gr.Group(elem_id="gallery_box"):
|
333 |
+
photo = gr.Image(label="Upload a picture of yourself", interactive=True, type="pil", height=300)
|
334 |
selected_loras = gr.Gallery(label="Selected LoRAs", height=80, show_share_button=False, visible=False, elem_id="gallery_selected", )
|
335 |
order_gallery = gr.Radio(choices=["random", "likes"], value="random", label="Order by", elem_id="order_radio")
|
336 |
#new_gallery = gr.Gallery(
|
|
|
342 |
#value=[(item["image"], item["title"]) for item in sdxl_loras],
|
343 |
label="Style gallery",
|
344 |
allow_preview=False,
|
345 |
+
columns=3,
|
346 |
elem_id="gallery",
|
347 |
show_share_button=False,
|
348 |
height=784
|
349 |
)
|
350 |
+
with gr.Column(scale=5):
|
351 |
with gr.Row():
|
352 |
prompt = gr.Textbox(label="Prompt", show_label=False, lines=1, max_lines=1, info="Describe your subject (optional)", value="A person", elem_id="prompt")
|
353 |
button = gr.Button("Run", elem_id="run_button")
|