Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -12,12 +12,23 @@ examples = [
|
|
12 |
["d3xt3r dachshund in a suit and tie"],
|
13 |
]
|
14 |
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
# Add GPUZero functionality
|
23 |
demo.queue()
|
|
|
12 |
["d3xt3r dachshund in a suit and tie"],
|
13 |
]
|
14 |
|
15 |
+
# Create the Gradio interface
|
16 |
+
demo = gr.Interface(
|
17 |
+
fn=generate_image,
|
18 |
+
inputs=[
|
19 |
+
gr.Textbox(label="Prompt"),
|
20 |
+
gr.Textbox(label="Negative Prompt", value=""),
|
21 |
+
gr.Slider(label="Seed", minimum=0, maximum=10000, step=1, value=42),
|
22 |
+
gr.Slider(label="Width", minimum=64, maximum=1024, step=64, value=512),
|
23 |
+
gr.Slider(label="Height", minimum=64, maximum=1024, step=64, value=512),
|
24 |
+
gr.Slider(label="Guidance Scale", minimum=0.0, maximum=10.0, step=0.1, value=3.5),
|
25 |
+
gr.Slider(label="Number of Inference Steps", minimum=1, maximum=100, step=1, value=20)
|
26 |
+
],
|
27 |
+
outputs="image",
|
28 |
+
examples=examples,
|
29 |
+
title="D3XT3R Dachshund Image Generator",
|
30 |
+
description="Generate images of D3XT3R the Dachshund with various prompts.",
|
31 |
+
)
|
32 |
|
33 |
# Add GPUZero functionality
|
34 |
demo.queue()
|