Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -356,7 +356,7 @@ def edit(
|
|
| 356 |
instruction,
|
| 357 |
model_choice="Edit",
|
| 358 |
resolution="1K",
|
| 359 |
-
num_inference_steps=
|
| 360 |
text_guidance_scale=4,
|
| 361 |
image_guidance_scale=1,
|
| 362 |
seed=42,
|
|
@@ -467,7 +467,7 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=CSS) as demo:
|
|
| 467 |
choices=["1K", "2K"], value="1K", label="Output resolution"
|
| 468 |
)
|
| 469 |
num_inference_steps = gr.Slider(
|
| 470 |
-
minimum=1, maximum=50, step=1, value=
|
| 471 |
label="Inference steps",
|
| 472 |
)
|
| 473 |
text_guidance_scale = gr.Slider(
|
|
@@ -522,7 +522,7 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=CSS) as demo:
|
|
| 522 |
)
|
| 523 |
return (
|
| 524 |
gr.update(visible=True),
|
| 525 |
-
gr.update(value=
|
| 526 |
gr.update(value=4.0, interactive=True),
|
| 527 |
gr.update(value=1.0, interactive=True),
|
| 528 |
gr.update(visible=True), # slider_col (Edit shows before/after)
|
|
|
|
| 356 |
instruction,
|
| 357 |
model_choice="Edit",
|
| 358 |
resolution="1K",
|
| 359 |
+
num_inference_steps=32,
|
| 360 |
text_guidance_scale=4,
|
| 361 |
image_guidance_scale=1,
|
| 362 |
seed=42,
|
|
|
|
| 467 |
choices=["1K", "2K"], value="1K", label="Output resolution"
|
| 468 |
)
|
| 469 |
num_inference_steps = gr.Slider(
|
| 470 |
+
minimum=1, maximum=50, step=1, value=32,
|
| 471 |
label="Inference steps",
|
| 472 |
)
|
| 473 |
text_guidance_scale = gr.Slider(
|
|
|
|
| 522 |
)
|
| 523 |
return (
|
| 524 |
gr.update(visible=True),
|
| 525 |
+
gr.update(value=32, minimum=1, maximum=50, label="Inference steps"),
|
| 526 |
gr.update(value=4.0, interactive=True),
|
| 527 |
gr.update(value=1.0, interactive=True),
|
| 528 |
gr.update(visible=True), # slider_col (Edit shows before/after)
|