Spaces:
Running
on
Zero
Running
on
Zero
Upload app.py
Browse files
app.py
CHANGED
@@ -841,40 +841,17 @@ with gr.Blocks(theme='NoCrypt/miku@>=1.2.2', fill_width=True, css=css, delete_ca
|
|
841 |
lora_scale_2 = gr.Slider(label="LoRA 2 Scale", minimum=0, maximum=3, step=0.01, value=1.15)
|
842 |
with gr.Row():
|
843 |
remove_button_2 = gr.Button("Remove", size="sm")
|
844 |
-
|
845 |
-
|
846 |
-
|
847 |
-
|
848 |
-
|
849 |
-
|
850 |
-
|
851 |
-
|
852 |
-
|
853 |
-
|
854 |
-
|
855 |
-
rows=1, # Begrenzt die Galerie auf eine Zeile
|
856 |
-
elem_id="gallery",
|
857 |
-
show_share_button=False,
|
858 |
-
interactive=False
|
859 |
-
)
|
860 |
-
with gr.Group():
|
861 |
-
with gr.Row(elem_id="custom_lora_structure"):
|
862 |
-
custom_lora = gr.Textbox(
|
863 |
-
label="Custom LoRA",
|
864 |
-
info="LoRA Hugging Face path or *.safetensors public URL",
|
865 |
-
placeholder="multimodalart/vintage-ads-flux",
|
866 |
-
scale=3,
|
867 |
-
min_width=150
|
868 |
-
)
|
869 |
-
add_custom_lora_button = gr.Button(
|
870 |
-
"Add Custom LoRA", elem_id="custom_lora_btn", scale=2, min_width=150
|
871 |
-
)
|
872 |
-
remove_custom_lora_button = gr.Button("Remove Custom LoRA", visible=False)
|
873 |
-
gr.Markdown(
|
874 |
-
"[Check the list of FLUX LoRAs](https://huggingface.co/models?other=base_model:adapter:black-forest-labs/FLUX.1-dev)",
|
875 |
-
elem_id="lora_list"
|
876 |
-
)
|
877 |
-
|
878 |
with gr.Column():
|
879 |
progress_bar = gr.Markdown(elem_id="progress",visible=False)
|
880 |
result = gr.Image(label="Generated Image", format="png", type="filepath", show_share_button=False, interactive=False)
|
|
|
841 |
lora_scale_2 = gr.Slider(label="LoRA 2 Scale", minimum=0, maximum=3, step=0.01, value=1.15)
|
842 |
with gr.Row():
|
843 |
remove_button_2 = gr.Button("Remove", size="sm")
|
844 |
+
with gr.Row():
|
845 |
+
with gr.Column():
|
846 |
+
selected_info = gr.Markdown("")
|
847 |
+
gallery = gr.Gallery([(item["image"], item["title"]) for item in loras], label="LoRA Gallery", allow_preview=False,
|
848 |
+
columns=4, elem_id="gallery", show_share_button=False, interactive=False)
|
849 |
+
with gr.Group():
|
850 |
+
with gr.Row(elem_id="custom_lora_structure"):
|
851 |
+
custom_lora = gr.Textbox(label="Custom LoRA", info="LoRA Hugging Face path or *.safetensors public URL", placeholder="multimodalart/vintage-ads-flux", scale=3, min_width=150)
|
852 |
+
add_custom_lora_button = gr.Button("Add Custom LoRA", elem_id="custom_lora_btn", scale=2, min_width=150)
|
853 |
+
remove_custom_lora_button = gr.Button("Remove Custom LoRA", visible=False)
|
854 |
+
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")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
855 |
with gr.Column():
|
856 |
progress_bar = gr.Markdown(elem_id="progress",visible=False)
|
857 |
result = gr.Image(label="Generated Image", format="png", type="filepath", show_share_button=False, interactive=False)
|