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,12 +39,12 @@ 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","colored, deformed, blurry, grain, artifacts, low quality", 1,
|
43 |
-
["image of menhir in sks style, 8k, high quality, old paper","colored, deformed, blurry, grain, artifacts, low quality", 1,
|
44 |
-
["image of church in sks style, 8k, high quality, old paper","colored, deformed, blurry, grain, artifacts, low quality", 1,
|
45 |
["image of ancient ruins in sks style, 8k, high quality, old paper","colored, deformed, blurry, grain, artifacts, low quality", 1, 50, 20],
|
46 |
["image of castle on hilltop in sks style, 8k, high quality, old paper","colored, deformed, blurry, grain, artifacts, low quality", 1, 50, 10],
|
47 |
-
["image of
|
48 |
["image of church in lake in sks style, 8k, high quality, old paper, black and white","colored, deformed, blurry, grain, artifacts, low quality", 1, 40, 18],
|
49 |
["image of village on hilltop with citadel in sks style, 8k, high quality, old paper, black and white","colored, deformed, blurry, grain, artifacts, low quality", 1, 40, 18]],
|
50 |
[prompt,negative_prompt, samples,num_steps, ugs], gallery, generate_images)
|
|
|
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=40)
|
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, 30, 18],
|
43 |
+
["image of menhir in sks style, 8k, high quality, old paper","colored, deformed, blurry, grain, artifacts, low quality", 1, 40, 20],
|
44 |
+
["image of church in sks style, 8k, high quality, old paper","colored, deformed, blurry, grain, artifacts, low quality", 1, 40, 20],
|
45 |
["image of ancient ruins in sks style, 8k, high quality, old paper","colored, deformed, blurry, grain, artifacts, low quality", 1, 50, 20],
|
46 |
["image of castle on hilltop in sks style, 8k, high quality, old paper","colored, deformed, blurry, grain, artifacts, low quality", 1, 50, 10],
|
47 |
+
["image of amphiteater in sks style, 8k, high quality, old paper","colored, deformed, blurry, grain, artifacts, low quality", 1, 40, 9],
|
48 |
["image of church in lake in sks style, 8k, high quality, old paper, black and white","colored, deformed, blurry, grain, artifacts, low quality", 1, 40, 18],
|
49 |
["image of village on hilltop with citadel in sks style, 8k, high quality, old paper, black and white","colored, deformed, blurry, grain, artifacts, low quality", 1, 40, 18]],
|
50 |
[prompt,negative_prompt, samples,num_steps, ugs], gallery, generate_images)
|