John6666 commited on
Commit
c533c6b
1 Parent(s): 467b9b3

Upload 3 files

Browse files
Files changed (3) hide show
  1. README.md +2 -2
  2. app.py +27 -24
  3. mod.py +3 -0
README.md CHANGED
@@ -4,9 +4,9 @@ emoji: 🏆😻
4
  colorFrom: red
5
  colorTo: pink
6
  sdk: gradio
7
- sdk_version: 4.40.0
8
  app_file: app.py
9
- pinned: false
10
  license: mit
11
  duplicated_from:
12
  - multimodalart/flux-lora-the-explorer
 
4
  colorFrom: red
5
  colorTo: pink
6
  sdk: gradio
7
+ sdk_version: 4.41.0
8
  app_file: app.py
9
+ pinned: true
10
  license: mit
11
  duplicated_from:
12
  - multimodalart/flux-lora-the-explorer
app.py CHANGED
@@ -365,26 +365,28 @@ with gr.Blocks(theme='Nymbo/Nymbo_Theme', fill_width=True, css=css) as app:
365
  lora_copy = [None] * num_loras
366
  lora_md = [None] * num_loras
367
  lora_num = [None] * num_loras
368
- for i in range(num_loras):
369
- with gr.Group():
370
- with gr.Row():
371
- lora_repo[i] = gr.Dropdown(label=f"LoRA {int(i+1)} Repo", choices=get_all_lora_tupled_list(), info="Input LoRA Repo ID", value="", allow_custom_value=True)
372
- lora_weights[i] = gr.Dropdown(label=f"LoRA {int(i+1)} Filename", choices=[], info="Optional", value="", allow_custom_value=True)
373
- lora_trigger[i] = gr.Textbox(label=f"LoRA {int(i+1)} Trigger Prompt", lines=1, max_lines=4, value="")
374
- lora_wt[i] = gr.Slider(label=f"LoRA {int(i+1)} Scale", minimum=-2, maximum=2, step=0.01, value=1.00)
375
- with gr.Row():
376
- lora_info[i] = gr.Textbox(label="", info="Example of prompt:", value="", show_copy_button=True, interactive=False, visible=False)
377
- lora_copy[i] = gr.Button(value="Copy example to prompt", visible=False)
378
- lora_md[i] = gr.Markdown(value="", visible=False)
379
- lora_num[i] = gr.Number(i, visible=False)
 
380
  with gr.Accordion("From URL", open=True, visible=True):
381
  with gr.Row():
382
  lora_search_civitai_query = gr.Textbox(label="Query", placeholder="flux", lines=1)
383
  lora_search_civitai_submit = gr.Button("Search on Civitai")
384
  lora_search_civitai_basemodel = gr.CheckboxGroup(label="Search LoRA for", choices=["Flux.1 D", "Flux.1 S"], value=["Flux.1 D", "Flux.1 S"])
385
  lora_search_civitai_result = gr.Dropdown(label="Search Results", choices=[("", "")], value="", allow_custom_value=True, visible=False)
386
- lora_search_civitai_json = gr.JSON(value={}, visible=False)
387
- lora_search_civitai_desc = gr.Markdown(value="", visible=False)
 
388
  lora_download_url = gr.Textbox(label="URL", placeholder="http://...my_lora_url.safetensors", lines=1)
389
  with gr.Row():
390
  lora_download = [None] * num_loras
@@ -399,16 +401,17 @@ with gr.Blocks(theme='Nymbo/Nymbo_Theme', fill_width=True, css=css) as app:
399
  cn_image_ref = [None] * num_cns
400
  cn_res = [None] * num_cns
401
  cn_num = [None] * num_cns
402
- for i in range(num_cns):
403
- with gr.Group():
404
- with gr.Row():
405
- cn_mode[i] = gr.Dropdown(label=f"ControlNet {int(i+1)} Mode", choices=get_control_union_mode(), value=get_control_union_mode()[0], allow_custom_value=False)
406
- cn_scale[i] = gr.Slider(label=f"ControlNet {int(i+1)} Weight", minimum=0.0, maximum=1.0, step=0.01, value=0.75)
407
- cn_res[i] = gr.Slider(label=f"ControlNet {int(i+1)} Preprocess resolution", minimum=128, maximum=512, value=384, step=1)
408
- cn_num[i] = gr.Number(i, visible=False)
409
- with gr.Row():
410
- cn_image_ref[i] = gr.Image(label="Image Reference", type="pil", format="png", height=256, sources=["upload", "clipboard"], show_share_button=False)
411
- cn_image[i] = gr.Image(label="Control Image", type="pil", format="png", height=256, show_share_button=False, interactive=False)
 
412
 
413
  gallery.select(
414
  update_selection,
 
365
  lora_copy = [None] * num_loras
366
  lora_md = [None] * num_loras
367
  lora_num = [None] * num_loras
368
+ with gr.Row():
369
+ for i in range(num_loras):
370
+ with gr.Column():
371
+ with gr.Row():
372
+ lora_repo[i] = gr.Dropdown(label=f"LoRA {int(i+1)} Repo", choices=get_all_lora_tupled_list(), info="Input LoRA Repo ID", value="", allow_custom_value=True)
373
+ lora_weights[i] = gr.Dropdown(label=f"LoRA {int(i+1)} Filename", choices=[], info="Optional", value="", allow_custom_value=True)
374
+ lora_trigger[i] = gr.Textbox(label=f"LoRA {int(i+1)} Trigger Prompt", lines=1, max_lines=4, value="")
375
+ lora_wt[i] = gr.Slider(label=f"LoRA {int(i+1)} Scale", minimum=-2, maximum=2, step=0.01, value=1.00)
376
+ with gr.Row():
377
+ lora_info[i] = gr.Textbox(label="", info="Example of prompt:", value="", show_copy_button=True, interactive=False, visible=False)
378
+ lora_copy[i] = gr.Button(value="Copy example to prompt", visible=False)
379
+ lora_md[i] = gr.Markdown(value="", visible=False)
380
+ lora_num[i] = gr.Number(i, visible=False)
381
  with gr.Accordion("From URL", open=True, visible=True):
382
  with gr.Row():
383
  lora_search_civitai_query = gr.Textbox(label="Query", placeholder="flux", lines=1)
384
  lora_search_civitai_submit = gr.Button("Search on Civitai")
385
  lora_search_civitai_basemodel = gr.CheckboxGroup(label="Search LoRA for", choices=["Flux.1 D", "Flux.1 S"], value=["Flux.1 D", "Flux.1 S"])
386
  lora_search_civitai_result = gr.Dropdown(label="Search Results", choices=[("", "")], value="", allow_custom_value=True, visible=False)
387
+ with gr.Row():
388
+ lora_search_civitai_json = gr.JSON(value={}, visible=False)
389
+ lora_search_civitai_desc = gr.Markdown(value="", visible=False)
390
  lora_download_url = gr.Textbox(label="URL", placeholder="http://...my_lora_url.safetensors", lines=1)
391
  with gr.Row():
392
  lora_download = [None] * num_loras
 
401
  cn_image_ref = [None] * num_cns
402
  cn_res = [None] * num_cns
403
  cn_num = [None] * num_cns
404
+ with gr.Row():
405
+ for i in range(num_cns):
406
+ with gr.Column():
407
+ with gr.Row():
408
+ cn_mode[i] = gr.Dropdown(label=f"ControlNet {int(i+1)} Mode", choices=get_control_union_mode(), value=get_control_union_mode()[0], allow_custom_value=False)
409
+ cn_scale[i] = gr.Slider(label=f"ControlNet {int(i+1)} Weight", minimum=0.0, maximum=1.0, step=0.01, value=0.75)
410
+ cn_res[i] = gr.Slider(label=f"ControlNet {int(i+1)} Preprocess resolution", minimum=128, maximum=512, value=384, step=1)
411
+ cn_num[i] = gr.Number(i, visible=False)
412
+ with gr.Row():
413
+ cn_image_ref[i] = gr.Image(label="Image Reference", type="pil", format="png", height=256, sources=["upload", "clipboard"], show_share_button=False)
414
+ cn_image[i] = gr.Image(label="Control Image", type="pil", format="png", height=256, show_share_button=False, interactive=False)
415
 
416
  gallery.select(
417
  update_selection,
mod.py CHANGED
@@ -32,6 +32,9 @@ models = [
32
  "John6666/iniverse-mix-xl-sfwnsfw-fluxdfp8v10-fp8-flux",
33
  "John6666/the-araminta-flux1a1-fp8-flux",
34
  "John6666/acorn-is-spinning-flux-v11-fp8-flux",
 
 
 
35
  "John6666/fluxescore-dev-v10fp16-fp8-flux",
36
  # "",
37
  ]
 
32
  "John6666/iniverse-mix-xl-sfwnsfw-fluxdfp8v10-fp8-flux",
33
  "John6666/the-araminta-flux1a1-fp8-flux",
34
  "John6666/acorn-is-spinning-flux-v11-fp8-flux",
35
+ "John6666/real-horny-v2-v2unet-fp8-flux",
36
+ "John6666/centerfold-flux-v20fp8e5m2-fp8-flux",
37
+ "John6666/jib-mix-flux-v208stephyper-fp8-flux",
38
  "John6666/fluxescore-dev-v10fp16-fp8-flux",
39
  # "",
40
  ]