Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ with gr.Blocks() as demo:
|
|
31 |
prompt = gr.Textbox(lines=1, value="image of monument in sks style", label="Base Prompt")
|
32 |
negative_prompt = gr.Textbox(lines=1, value="deformed", label="Negative Prompt")
|
33 |
samples = gr.Slider(minimum=1, maximum=5, value=1, step=1, label="Number of Image")
|
34 |
-
num_steps = gr.Slider(label="Inference Steps",value=
|
35 |
ugs = gr.Slider(value=15, minimum=5, maximum=25, step=1, label="Unconditional Guidance Scale")
|
36 |
run = gr.Button(value="Run")
|
37 |
with gr.Column():
|
@@ -39,7 +39,7 @@ with gr.Blocks() as demo:
|
|
39 |
|
40 |
run.click(generate_images, inputs=[prompt,negative_prompt, samples, num_steps, ugs], outputs=gallery)
|
41 |
|
42 |
-
gr.Examples([["image of monument in sks style, 8k, high quality, old paper","deformed", 1,
|
43 |
[prompt,negative_prompt, samples,num_steps, ugs], gallery, generate_images)
|
44 |
|
45 |
demo.launch(debug=True)
|
|
|
31 |
prompt = gr.Textbox(lines=1, value="image of monument in sks style", label="Base Prompt")
|
32 |
negative_prompt = gr.Textbox(lines=1, value="deformed", label="Negative Prompt")
|
33 |
samples = gr.Slider(minimum=1, maximum=5, value=1, step=1, label="Number of Image")
|
34 |
+
num_steps = gr.Slider(label="Inference Steps",value=50)
|
35 |
ugs = gr.Slider(value=15, minimum=5, maximum=25, step=1, label="Unconditional Guidance Scale")
|
36 |
run = gr.Button(value="Run")
|
37 |
with gr.Column():
|
|
|
39 |
|
40 |
run.click(generate_images, inputs=[prompt,negative_prompt, samples, num_steps, ugs], outputs=gallery)
|
41 |
|
42 |
+
gr.Examples([["image of monument in sks style, 8k, high quality, old paper","colored, deformed, blurry, grain, artifacts, low quality", 1, 50, 18]],
|
43 |
[prompt,negative_prompt, samples,num_steps, ugs], gallery, generate_images)
|
44 |
|
45 |
demo.launch(debug=True)
|