Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -217,7 +217,7 @@ def infer(
|
|
| 217 |
def infer_example(input_image, prompt, lora_adapter):
|
| 218 |
input_pil = input_image.convert("RGB")
|
| 219 |
guidance_scale = 1
|
| 220 |
-
steps =
|
| 221 |
result, seed = infer(input_pil, prompt, lora_adapter, 0, True, guidance_scale, steps)
|
| 222 |
return result, seed
|
| 223 |
|
|
@@ -260,7 +260,7 @@ with gr.Blocks() as demo:
|
|
| 260 |
seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0)
|
| 261 |
randomize_seed = gr.Checkbox(label="Randomize Seed", value=True)
|
| 262 |
guidance_scale = gr.Slider(label="Guidance Scale", minimum=1, maximum=10, step=1, value=1)
|
| 263 |
-
steps = gr.Slider(label="Inference Steps", minimum=1, maximum=50, step=1, value=
|
| 264 |
|
| 265 |
gr.Examples(
|
| 266 |
examples=[
|
|
|
|
| 217 |
def infer_example(input_image, prompt, lora_adapter):
|
| 218 |
input_pil = input_image.convert("RGB")
|
| 219 |
guidance_scale = 1
|
| 220 |
+
steps = 50
|
| 221 |
result, seed = infer(input_pil, prompt, lora_adapter, 0, True, guidance_scale, steps)
|
| 222 |
return result, seed
|
| 223 |
|
|
|
|
| 260 |
seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0)
|
| 261 |
randomize_seed = gr.Checkbox(label="Randomize Seed", value=True)
|
| 262 |
guidance_scale = gr.Slider(label="Guidance Scale", minimum=1, maximum=10, step=1, value=1)
|
| 263 |
+
steps = gr.Slider(label="Inference Steps", minimum=1, maximum=50, step=1, value=50)
|
| 264 |
|
| 265 |
gr.Examples(
|
| 266 |
examples=[
|