Upload app.py
Browse files
app.py
CHANGED
@@ -368,8 +368,8 @@ with gr.Blocks(theme='Nymbo/Nymbo_Theme', fill_width=True, css=css) as app:
|
|
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)
|
@@ -383,16 +383,16 @@ with gr.Blocks(theme='Nymbo/Nymbo_Theme', fill_width=True, css=css) as app:
|
|
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
|
393 |
for i in range(num_loras):
|
394 |
lora_download[i] = gr.Button(f"Get and set LoRA to {int(i+1)}")
|
395 |
-
with gr.Accordion("ControlNet", open=False):
|
396 |
with gr.Column():
|
397 |
cn_on = gr.Checkbox(False, label="Use ControlNet")
|
398 |
cn_mode = [None] * num_cns
|
|
|
368 |
with gr.Row():
|
369 |
for i in range(num_loras):
|
370 |
with gr.Column():
|
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 |
with gr.Row():
|
|
|
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)
|
|
|
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 |
with gr.Row():
|
387 |
lora_search_civitai_json = gr.JSON(value={}, visible=False)
|
388 |
lora_search_civitai_desc = gr.Markdown(value="", visible=False)
|
389 |
+
lora_search_civitai_result = gr.Dropdown(label="Search Results", choices=[("", "")], value="", allow_custom_value=True, 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
|
393 |
for i in range(num_loras):
|
394 |
lora_download[i] = gr.Button(f"Get and set LoRA to {int(i+1)}")
|
395 |
+
with gr.Accordion("ControlNet (🚧Under construction...🚧)", open=False):
|
396 |
with gr.Column():
|
397 |
cn_on = gr.Checkbox(False, label="Use ControlNet")
|
398 |
cn_mode = [None] * num_cns
|