habulaj commited on
Commit
4fc5e3b
1 Parent(s): 5cfd0a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +26 -24
app.py CHANGED
@@ -149,30 +149,7 @@ with gr.Blocks(theme=theme, css="style.css") as demo:
149
  use_lora = gr.Checkbox(label='Use 1 LoRA', value=False)
150
  use_lora2 = gr.Checkbox(label='Use 2 LoRAs', value=False)
151
  use_negative_prompt = gr.Checkbox(label="Use negative prompt", value=False)
152
- with gr.Group():
153
- gr.Markdown("""### LoRAs
154
- <small>To activate the use of LoRAs, you should check only the 'Use 1 LoRA' checkbox if you want to use just one LoRA, and only the 'Use 2 LoRAs' checkbox if you want to use 2 LoRAs (i.e., blend styles)! It's important that all LoRAs are from the same base version of the selected model. For example, if the model is SDXL 1.0, the LoRA must also be.</small>"""
155
- )
156
- lora = gr.Text(label='LoRA 1', placeholder='e.g. nerijs/pixel-art-xl', visible=False)
157
- lora2 = gr.Text(label='LoRA 2', placeholder='e.g. nerijs/pixel-art-xl', visible=False)
158
- lora_scale = gr.Slider(
159
- info="The closer to 1, the more it will resemble LoRA, but errors may be visible.",
160
- label="Lora Scale 1",
161
- minimum=0.01,
162
- maximum=1,
163
- step=0.01,
164
- value=0.7,
165
- visible=False,
166
- )
167
- lora_scale2 = gr.Slider(
168
- info="The closer to 1, the more it will resemble LoRA, but errors may be visible.",
169
- label="Lora Scale 2",
170
- minimum=0.01,
171
- maximum=1,
172
- step=0.01,
173
- value=0.7,
174
- visible=False,
175
- )
176
  with gr.Group():
177
  negative_prompt = gr.Text(
178
  placeholder="Input Negative Prompt",
@@ -198,6 +175,31 @@ with gr.Blocks(theme=theme, css="style.css") as demo:
198
  value=5.0,
199
  )
200
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
201
  use_negative_prompt.change(
202
  fn=lambda x: gr.update(visible=x),
203
  inputs=use_negative_prompt,
 
149
  use_lora = gr.Checkbox(label='Use 1 LoRA', value=False)
150
  use_lora2 = gr.Checkbox(label='Use 2 LoRAs', value=False)
151
  use_negative_prompt = gr.Checkbox(label="Use negative prompt", value=False)
152
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
153
  with gr.Group():
154
  negative_prompt = gr.Text(
155
  placeholder="Input Negative Prompt",
 
175
  value=5.0,
176
  )
177
 
178
+ with gr.Group():
179
+ gr.Markdown("""### LoRAs
180
+ <small>To activate the use of LoRAs, you should check only the 'Use 1 LoRA' checkbox if you want to use just one LoRA, and only the 'Use 2 LoRAs' checkbox if you want to use 2 LoRAs (i.e., blend styles)! It's important that all LoRAs are from the same base version of the selected model. For example, if the model is SDXL 1.0, the LoRA must also be.</small>"""
181
+ )
182
+ lora = gr.Text(label='LoRA 1', placeholder='e.g. nerijs/pixel-art-xl', visible=False)
183
+ lora2 = gr.Text(label='LoRA 2', placeholder='e.g. nerijs/pixel-art-xl', visible=False)
184
+ lora_scale = gr.Slider(
185
+ info="The closer to 1, the more it will resemble LoRA, but errors may be visible.",
186
+ label="Lora Scale 1",
187
+ minimum=0.01,
188
+ maximum=1,
189
+ step=0.01,
190
+ value=0.7,
191
+ visible=False,
192
+ )
193
+ lora_scale2 = gr.Slider(
194
+ info="The closer to 1, the more it will resemble LoRA, but errors may be visible.",
195
+ label="Lora Scale 2",
196
+ minimum=0.01,
197
+ maximum=1,
198
+ step=0.01,
199
+ value=0.7,
200
+ visible=False,
201
+ )
202
+
203
  use_negative_prompt.change(
204
  fn=lambda x: gr.update(visible=x),
205
  inputs=use_negative_prompt,