Spaces:
Running
on
Zero
Running
on
Zero
Upload app.py
Browse files
app.py
CHANGED
@@ -87,37 +87,42 @@ with gr.Blocks(css=css, fill_width=True, elem_id="container") as demo:
|
|
87 |
|
88 |
with gr.Accordion("LoRA", open=True, visible=True):
|
89 |
with gr.Row():
|
90 |
-
with gr.
|
91 |
-
|
92 |
-
|
|
|
93 |
with gr.Row():
|
94 |
lora1_info = gr.Textbox(label="", info="Example of prompt:", value="", show_copy_button=True, interactive=False, visible=False)
|
95 |
lora1_copy = gr.Button(value="Copy example to prompt", visible=False)
|
96 |
lora1_md = gr.Markdown(value="", visible=False)
|
97 |
-
with gr.
|
98 |
-
|
99 |
-
|
|
|
100 |
with gr.Row():
|
101 |
lora2_info = gr.Textbox(label="", info="Example of prompt:", value="", show_copy_button=True, interactive=False, visible=False)
|
102 |
lora2_copy = gr.Button(value="Copy example to prompt", visible=False)
|
103 |
lora2_md = gr.Markdown(value="", visible=False)
|
104 |
-
with gr.
|
105 |
-
|
106 |
-
|
|
|
107 |
with gr.Row():
|
108 |
lora3_info = gr.Textbox(label="", info="Example of prompt:", value="", show_copy_button=True, interactive=False, visible=False)
|
109 |
lora3_copy = gr.Button(value="Copy example to prompt", visible=False)
|
110 |
lora3_md = gr.Markdown(value="", visible=False)
|
111 |
-
with gr.
|
112 |
-
|
113 |
-
|
|
|
114 |
with gr.Row():
|
115 |
lora4_info = gr.Textbox(label="", info="Example of prompt:", value="", show_copy_button=True, interactive=False, visible=False)
|
116 |
lora4_copy = gr.Button(value="Copy example to prompt", visible=False)
|
117 |
lora4_md = gr.Markdown(value="", visible=False)
|
118 |
-
with gr.
|
119 |
-
|
120 |
-
|
|
|
121 |
with gr.Row():
|
122 |
lora5_info = gr.Textbox(label="", info="Example of prompt:", value="", show_copy_button=True, interactive=False, visible=False)
|
123 |
lora5_copy = gr.Button(value="Copy example to prompt", visible=False)
|
@@ -127,9 +132,10 @@ with gr.Blocks(css=css, fill_width=True, elem_id="container") as demo:
|
|
127 |
lora_search_civitai_query = gr.Textbox(label="Query", placeholder="oomuro sakurako...", lines=1)
|
128 |
lora_search_civitai_basemodel = gr.CheckboxGroup(label="Search LoRA for", choices=["Pony", "SD 1.5", "SDXL 1.0"], value=["Pony", "SDXL 1.0"])
|
129 |
lora_search_civitai_submit = gr.Button("Search on Civitai")
|
130 |
-
|
131 |
-
|
132 |
-
|
|
|
133 |
lora_download_url = gr.Textbox(label="URL", placeholder="http://...my_lora_url.safetensors", lines=1)
|
134 |
lora_download = gr.Button("Get and set LoRA and apply to prompt")
|
135 |
|
|
|
87 |
|
88 |
with gr.Accordion("LoRA", open=True, visible=True):
|
89 |
with gr.Row():
|
90 |
+
with gr.Column():
|
91 |
+
with gr.Row():
|
92 |
+
lora1 = gr.Dropdown(label="LoRA 1", choices=get_all_lora_tupled_list(), value="", allow_custom_value=True, elem_classes="lora", min_width=320)
|
93 |
+
lora1_wt = gr.Slider(minimum=-2, maximum=2, step=0.01, value=1.00, label="LoRA 1: weight")
|
94 |
with gr.Row():
|
95 |
lora1_info = gr.Textbox(label="", info="Example of prompt:", value="", show_copy_button=True, interactive=False, visible=False)
|
96 |
lora1_copy = gr.Button(value="Copy example to prompt", visible=False)
|
97 |
lora1_md = gr.Markdown(value="", visible=False)
|
98 |
+
with gr.Column():
|
99 |
+
with gr.Row():
|
100 |
+
lora2 = gr.Dropdown(label="LoRA 2", choices=get_all_lora_tupled_list(), value="", allow_custom_value=True, elem_classes="lora", min_width=320)
|
101 |
+
lora2_wt = gr.Slider(minimum=-2, maximum=2, step=0.01, value=1.00, label="LoRA 2: weight")
|
102 |
with gr.Row():
|
103 |
lora2_info = gr.Textbox(label="", info="Example of prompt:", value="", show_copy_button=True, interactive=False, visible=False)
|
104 |
lora2_copy = gr.Button(value="Copy example to prompt", visible=False)
|
105 |
lora2_md = gr.Markdown(value="", visible=False)
|
106 |
+
with gr.Column():
|
107 |
+
with gr.Row():
|
108 |
+
lora3 = gr.Dropdown(label="LoRA 3", choices=get_all_lora_tupled_list(), value="", allow_custom_value=True, elem_classes="lora", min_width=320)
|
109 |
+
lora3_wt = gr.Slider(minimum=-2, maximum=2, step=0.01, value=1.00, label="LoRA 3: weight")
|
110 |
with gr.Row():
|
111 |
lora3_info = gr.Textbox(label="", info="Example of prompt:", value="", show_copy_button=True, interactive=False, visible=False)
|
112 |
lora3_copy = gr.Button(value="Copy example to prompt", visible=False)
|
113 |
lora3_md = gr.Markdown(value="", visible=False)
|
114 |
+
with gr.Column():
|
115 |
+
with gr.Row():
|
116 |
+
lora4 = gr.Dropdown(label="LoRA 4", choices=get_all_lora_tupled_list(), value="", allow_custom_value=True, elem_classes="lora", min_width=320)
|
117 |
+
lora4_wt = gr.Slider(minimum=-2, maximum=2, step=0.01, value=1.00, label="LoRA 4: weight")
|
118 |
with gr.Row():
|
119 |
lora4_info = gr.Textbox(label="", info="Example of prompt:", value="", show_copy_button=True, interactive=False, visible=False)
|
120 |
lora4_copy = gr.Button(value="Copy example to prompt", visible=False)
|
121 |
lora4_md = gr.Markdown(value="", visible=False)
|
122 |
+
with gr.Column():
|
123 |
+
with gr.Row():
|
124 |
+
lora5 = gr.Dropdown(label="LoRA 5", choices=get_all_lora_tupled_list(), value="", allow_custom_value=True, elem_classes="lora", min_width=320)
|
125 |
+
lora5_wt = gr.Slider(minimum=-2, maximum=2, step=0.01, value=1.00, label="LoRA 5: weight")
|
126 |
with gr.Row():
|
127 |
lora5_info = gr.Textbox(label="", info="Example of prompt:", value="", show_copy_button=True, interactive=False, visible=False)
|
128 |
lora5_copy = gr.Button(value="Copy example to prompt", visible=False)
|
|
|
132 |
lora_search_civitai_query = gr.Textbox(label="Query", placeholder="oomuro sakurako...", lines=1)
|
133 |
lora_search_civitai_basemodel = gr.CheckboxGroup(label="Search LoRA for", choices=["Pony", "SD 1.5", "SDXL 1.0"], value=["Pony", "SDXL 1.0"])
|
134 |
lora_search_civitai_submit = gr.Button("Search on Civitai")
|
135 |
+
with gr.Row():
|
136 |
+
lora_search_civitai_result = gr.Dropdown(label="Search Results", choices=[("", "")], value="", allow_custom_value=True, visible=False)
|
137 |
+
lora_search_civitai_json = gr.JSON(value={}, visible=False)
|
138 |
+
lora_search_civitai_desc = gr.Markdown(value="", visible=False)
|
139 |
lora_download_url = gr.Textbox(label="URL", placeholder="http://...my_lora_url.safetensors", lines=1)
|
140 |
lora_download = gr.Button("Get and set LoRA and apply to prompt")
|
141 |
|