Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -60,7 +60,7 @@ def flip_image(x):
|
|
60 |
def clear():
|
61 |
return None
|
62 |
|
63 |
-
def query(lora_id, prompt, is_negative=False, steps=28, cfg_scale=3.5, sampler="DPM++ 2M Karras", seed=-1, strength=
|
64 |
if prompt == "" or prompt == None:
|
65 |
return None
|
66 |
|
@@ -171,7 +171,7 @@ with gr.Blocks(theme=theme, css=css, elem_id="app-container") as app:
|
|
171 |
steps = gr.Slider(label="Sampling steps", value=50, minimum=1, maximum=100, step=1)
|
172 |
cfg = gr.Slider(label="CFG Scale", value=3.5, minimum=1, maximum=20, step=0.5)
|
173 |
method = gr.Radio(label="Sampling method", value="DPM++ 2M Karras", choices=["DPM++ 2M Karras", "DPM++ SDE Karras", "DEIS", "LMS", "DPM Adaptive", "DPM++ 2M", "DPM++ S", "DPM++ SDE", "DDPM", "DPM Fast", "Euler", "Euler CFG PP", "Euler a", "Euler+beta", "Heun", "Heun PP2", "DDIM", "PLMS", "UniPC", "UniPC BH2"])
|
174 |
-
strength = gr.Slider(label="Strength", value=
|
175 |
seed = gr.Slider(label="Seed", value=-1, minimum=-1, maximum=1000000000, step=1)
|
176 |
with gr.Row():
|
177 |
with gr.Accordion("🫘Seed", open=False):
|
|
|
60 |
def clear():
|
61 |
return None
|
62 |
|
63 |
+
def query(lora_id, prompt, is_negative=False, steps=28, cfg_scale=3.5, sampler="DPM++ 2M Karras", seed=-1, strength=100, width=896, height=1152):
|
64 |
if prompt == "" or prompt == None:
|
65 |
return None
|
66 |
|
|
|
171 |
steps = gr.Slider(label="Sampling steps", value=50, minimum=1, maximum=100, step=1)
|
172 |
cfg = gr.Slider(label="CFG Scale", value=3.5, minimum=1, maximum=20, step=0.5)
|
173 |
method = gr.Radio(label="Sampling method", value="DPM++ 2M Karras", choices=["DPM++ 2M Karras", "DPM++ SDE Karras", "DEIS", "LMS", "DPM Adaptive", "DPM++ 2M", "DPM++ S", "DPM++ SDE", "DDPM", "DPM Fast", "Euler", "Euler CFG PP", "Euler a", "Euler+beta", "Heun", "Heun PP2", "DDIM", "PLMS", "UniPC", "UniPC BH2"])
|
174 |
+
strength = gr.Slider(label="Strength", value=100, minimum=0, maximum=1, step=10)
|
175 |
seed = gr.Slider(label="Seed", value=-1, minimum=-1, maximum=1000000000, step=1)
|
176 |
with gr.Row():
|
177 |
with gr.Accordion("🫘Seed", open=False):
|