multimodalart HF staff commited on
Commit
eb191cf
1 Parent(s): 26a0ac1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -19
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.Group(elem_id="gallery_box"):
324
- photo = gr.Image(label="Upload a picture of yourself", interactive=True, type="pil")
325
- selected_loras = gr.Gallery(label="Selected LoRAs", height=80, show_share_button=False, visible=False, elem_id="gallery_selected", )
326
- order_gallery = gr.Radio(choices=["random", "likes"], value="random", label="Order by", elem_id="order_radio")
327
- #new_gallery = gr.Gallery(
328
- # label="New LoRAs",
329
- # elem_id="gallery_new",
330
- # columns=3,
331
- # value=[(item["image"], item["title"]) for item in sdxl_loras_raw_new], allow_preview=False, show_share_button=False)
332
- gallery = gr.Gallery(
333
- #value=[(item["image"], item["title"]) for item in sdxl_loras],
334
- label="SDXL LoRA Gallery",
335
- allow_preview=False,
336
- columns=3,
337
- elem_id="gallery",
338
- show_share_button=False,
339
- height=784
340
- )
341
- with gr.Column():
 
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")