Spaces:
Running
on
Zero
Running
on
Zero
1-2 step inference
Browse files
app.py
CHANGED
@@ -97,9 +97,11 @@ with gr.Blocks() as demo:
|
|
97 |
width = gr.Slider(
|
98 |
label="Image Width", minimum=768, maximum=1024, step=8, value=1024, interactive=True
|
99 |
)
|
|
|
|
|
|
|
100 |
prompt = gr.Text(label="Prompt", value="a photo of a cat", interactive=True)
|
101 |
seed = gr.Number(label="Seed", value=2024, interactive=True)
|
102 |
-
inference_steps = gr.Number(label="Inference Steps", value=1, interactive=False)
|
103 |
btn = gr.Button(value="Generate Image")
|
104 |
with gr.Column():
|
105 |
output = gr.Gallery(height=1024)
|
|
|
97 |
width = gr.Slider(
|
98 |
label="Image Width", minimum=768, maximum=1024, step=8, value=1024, interactive=True
|
99 |
)
|
100 |
+
inference_steps = gr.Slider(
|
101 |
+
label="Inference Steps", minimum=1, maximum=2, step=1, value=1, interactive=True,
|
102 |
+
)
|
103 |
prompt = gr.Text(label="Prompt", value="a photo of a cat", interactive=True)
|
104 |
seed = gr.Number(label="Seed", value=2024, interactive=True)
|
|
|
105 |
btn = gr.Button(value="Generate Image")
|
106 |
with gr.Column():
|
107 |
output = gr.Gallery(height=1024)
|