Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -296,7 +296,44 @@ with gr.Blocks(css=css) as demo:
|
|
296 |
info = "Use your trigger words into a coherent prompt",
|
297 |
placeholder = "e.g: a triggerWordOne portrait in triggerWord2 style"
|
298 |
)
|
299 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
300 |
run_btn = gr.Button("2. Run", elem_id="run_button")
|
301 |
|
302 |
output_image = gr.Image(
|
@@ -306,43 +343,7 @@ with gr.Blocks(css=css) as demo:
|
|
306 |
with gr.Accordion("Past generations", open=False):
|
307 |
user_history.render()
|
308 |
|
309 |
-
|
310 |
-
with gr.Accordion("Advanced Settings", open=False):
|
311 |
-
|
312 |
-
with gr.Row():
|
313 |
-
|
314 |
-
lora_1_scale = gr.Slider(
|
315 |
-
label = "LoRa 1 scale",
|
316 |
-
minimum = 0,
|
317 |
-
maximum = 1,
|
318 |
-
step = 0.1,
|
319 |
-
value = 0.7
|
320 |
-
)
|
321 |
-
|
322 |
-
lora_2_scale = gr.Slider(
|
323 |
-
label = "LoRa 2 scale",
|
324 |
-
minimum = 0,
|
325 |
-
maximum = 1,
|
326 |
-
step = 0.1,
|
327 |
-
value = 0.7
|
328 |
-
)
|
329 |
-
|
330 |
-
negative_prompt = gr.Textbox(
|
331 |
-
label = "Negative prompt"
|
332 |
-
)
|
333 |
-
|
334 |
-
seed = gr.Slider(
|
335 |
-
label = "Seed",
|
336 |
-
info = "-1 denotes a random seed",
|
337 |
-
minimum = -1,
|
338 |
-
maximum = 423538377342,
|
339 |
-
value = -1
|
340 |
-
)
|
341 |
-
|
342 |
-
last_used_seed = gr.Number(
|
343 |
-
label = "Last used seed",
|
344 |
-
info = "the seed used in the last generation",
|
345 |
-
)
|
346 |
|
347 |
# ACTIONS
|
348 |
load_models_btn.click(
|
|
|
296 |
info = "Use your trigger words into a coherent prompt",
|
297 |
placeholder = "e.g: a triggerWordOne portrait in triggerWord2 style"
|
298 |
)
|
299 |
+
# Advanced Settings
|
300 |
+
with gr.Accordion("Advanced Settings", open=False):
|
301 |
+
|
302 |
+
with gr.Row():
|
303 |
+
|
304 |
+
lora_1_scale = gr.Slider(
|
305 |
+
label = "LoRa 1 scale",
|
306 |
+
minimum = 0,
|
307 |
+
maximum = 1,
|
308 |
+
step = 0.1,
|
309 |
+
value = 0.7
|
310 |
+
)
|
311 |
+
|
312 |
+
lora_2_scale = gr.Slider(
|
313 |
+
label = "LoRa 2 scale",
|
314 |
+
minimum = 0,
|
315 |
+
maximum = 1,
|
316 |
+
step = 0.1,
|
317 |
+
value = 0.7
|
318 |
+
)
|
319 |
+
|
320 |
+
negative_prompt = gr.Textbox(
|
321 |
+
label = "Negative prompt"
|
322 |
+
)
|
323 |
+
|
324 |
+
seed = gr.Slider(
|
325 |
+
label = "Seed",
|
326 |
+
info = "-1 denotes a random seed",
|
327 |
+
minimum = -1,
|
328 |
+
maximum = 423538377342,
|
329 |
+
value = -1
|
330 |
+
)
|
331 |
+
|
332 |
+
last_used_seed = gr.Number(
|
333 |
+
label = "Last used seed",
|
334 |
+
info = "the seed used in the last generation",
|
335 |
+
)
|
336 |
+
|
337 |
run_btn = gr.Button("2. Run", elem_id="run_button")
|
338 |
|
339 |
output_image = gr.Image(
|
|
|
343 |
with gr.Accordion("Past generations", open=False):
|
344 |
user_history.render()
|
345 |
|
346 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
347 |
|
348 |
# ACTIONS
|
349 |
load_models_btn.click(
|