Update app.py
Browse files
app.py
CHANGED
@@ -497,11 +497,11 @@ css = '''
|
|
497 |
|
498 |
with gr.Blocks(css=css, delete_cache=(60, 60)) as app:
|
499 |
title = gr.HTML(
|
500 |
-
"""<h1><img src="
|
501 |
margin-top: -25px !important;
|
502 |
display: block;
|
503 |
margin-left: 37px;
|
504 |
-
">
|
505 |
elem_id="title",
|
506 |
)
|
507 |
loras_state = gr.State(loras)
|
@@ -542,30 +542,16 @@ with gr.Blocks(css=css, delete_cache=(60, 60)) as app:
|
|
542 |
add_custom_lora_button = gr.Button("Add Custom LoRA", elem_id="custom_lora_btn", scale=2, min_width=150)
|
543 |
remove_custom_lora_button = gr.Button("Remove Custom LoRA", visible=False)
|
544 |
gr.Markdown("[Check the list of FLUX LoRAs](https://huggingface.co/models?other=base_model:adapter:black-forest-labs/FLUX.1-dev)", elem_id="lora_list")
|
545 |
-
gallery = gr.Gallery(
|
546 |
-
[(item["image"], item["title"]) for item in loras],
|
547 |
-
label="Or pick from the LoRA Explorer gallery",
|
548 |
-
allow_preview=False,
|
549 |
-
columns=5,
|
550 |
-
elem_id="gallery",
|
551 |
-
show_share_button=False,
|
552 |
-
interactive=False
|
553 |
-
)
|
554 |
-
with gr.Column():
|
555 |
-
progress_bar = gr.Markdown(elem_id="progress", visible=False)
|
556 |
-
result = gr.Image(label="Generated Image", interactive=False, show_share_button=False)
|
557 |
-
with gr.Accordion("History", open=False):
|
558 |
-
history_gallery = gr.Gallery(label="History", columns=6, object_fit="contain", interactive=False)
|
559 |
|
560 |
with gr.Row():
|
561 |
with gr.Accordion("Advanced Settings", open=False):
|
562 |
-
with gr.Row():
|
563 |
-
input_image = gr.Image(label="Input image", type="filepath", show_share_button=False)
|
564 |
-
image_strength = gr.Slider(label="Denoise Strength", info="Lower means more image influence", minimum=0.1, maximum=1.0, step=0.01, value=0.75)
|
565 |
-
with gr.Column():
|
566 |
-
with gr.Row():
|
567 |
-
cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, step=0.5, value=3.5)
|
568 |
-
steps = gr.Slider(label="Steps", minimum=1, maximum=50, step=1, value=28)
|
569 |
|
570 |
with gr.Row():
|
571 |
width = gr.Slider(label="Width", minimum=256, maximum=1536, step=64, value=1024)
|
@@ -574,6 +560,21 @@ with gr.Blocks(css=css, delete_cache=(60, 60)) as app:
|
|
574 |
with gr.Row():
|
575 |
randomize_seed = gr.Checkbox(True, label="Randomize seed")
|
576 |
seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0, randomize=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
577 |
|
578 |
gallery.select(
|
579 |
update_selection,
|
|
|
497 |
|
498 |
with gr.Blocks(css=css, delete_cache=(60, 60)) as app:
|
499 |
title = gr.HTML(
|
500 |
+
"""<h1><img src="solo-traveller_16875043.png" alt="LoRA"> Celebrity LoRa Mix</h1><br><span style="
|
501 |
margin-top: -25px !important;
|
502 |
display: block;
|
503 |
margin-left: 37px;
|
504 |
+
">SFW & NSFW Celebrity Fantacy's</span>""",
|
505 |
elem_id="title",
|
506 |
)
|
507 |
loras_state = gr.State(loras)
|
|
|
542 |
add_custom_lora_button = gr.Button("Add Custom LoRA", elem_id="custom_lora_btn", scale=2, min_width=150)
|
543 |
remove_custom_lora_button = gr.Button("Remove Custom LoRA", visible=False)
|
544 |
gr.Markdown("[Check the list of FLUX LoRAs](https://huggingface.co/models?other=base_model:adapter:black-forest-labs/FLUX.1-dev)", elem_id="lora_list")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
545 |
|
546 |
with gr.Row():
|
547 |
with gr.Accordion("Advanced Settings", open=False):
|
548 |
+
# with gr.Row():
|
549 |
+
# input_image = gr.Image(label="Input image", type="filepath", show_share_button=False)
|
550 |
+
# image_strength = gr.Slider(label="Denoise Strength", info="Lower means more image influence", minimum=0.1, maximum=1.0, step=0.01, value=0.75)
|
551 |
+
# with gr.Column():
|
552 |
+
# with gr.Row():
|
553 |
+
# cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, step=0.5, value=3.5)
|
554 |
+
# steps = gr.Slider(label="Steps", minimum=1, maximum=50, step=1, value=28)
|
555 |
|
556 |
with gr.Row():
|
557 |
width = gr.Slider(label="Width", minimum=256, maximum=1536, step=64, value=1024)
|
|
|
560 |
with gr.Row():
|
561 |
randomize_seed = gr.Checkbox(True, label="Randomize seed")
|
562 |
seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0, randomize=True)
|
563 |
+
|
564 |
+
gallery = gr.Gallery(
|
565 |
+
[(item["image"], item["title"]) for item in loras],
|
566 |
+
label="Explorer gallery",
|
567 |
+
allow_preview=False,
|
568 |
+
columns=5,
|
569 |
+
elem_id="gallery",
|
570 |
+
show_share_button=False,
|
571 |
+
interactive=False
|
572 |
+
)
|
573 |
+
with gr.Column():
|
574 |
+
progress_bar = gr.Markdown(elem_id="progress", visible=False)
|
575 |
+
result = gr.Image(label="Generated Image", interactive=False, show_share_button=False)
|
576 |
+
# with gr.Accordion("History", open=False):
|
577 |
+
# history_gallery = gr.Gallery(label="History", columns=6, object_fit="contain", interactive=False)
|
578 |
|
579 |
gallery.select(
|
580 |
update_selection,
|