GenAIJake commited on
Commit
5e8eb3e
·
verified ·
1 Parent(s): a6485b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -6
app.py CHANGED
@@ -12,12 +12,23 @@ examples = [
12
  ["d3xt3r dachshund in a suit and tie"],
13
  ]
14
 
15
- demo = gr.load("models/GenAIJake/d3xt3r")
16
-
17
- # Customize the interface
18
- with demo:
19
- gr.Markdown("# D3XT3R Dachshund Image Generator")
20
- gr.Examples(examples, inputs=demo.input_components)
 
 
 
 
 
 
 
 
 
 
 
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()