File size: 677 Bytes
26fd434
4ce6602
26fd434
dac7332
 
4ce6602
 
 
dac7332
a6485b2
 
 
dac7332
4ce6602
ab994ab
 
 
 
 
 
4ce6602
 
4980386
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import gradio as gr
import spaces

@spaces.GPU
def generate_image(prompt, negative_prompt="", seed=42, width=512, height=512, guidance_scale=3.5, num_inference_steps=20):
    # This function will be called by gr.load(), so we don't need to implement it here
    pass

examples = [
    ["d3xt3r dachshund as a camp counselor in the woods."],
    ["d3xt3r dachshund dressed as batman"],
    ["d3xt3r dachshund in a suit and tie"],
]

demo = gr.load("models/GenAIJake/d3xt3r")

# Customize the interface
with demo:
    gr.Markdown("# D3XT3R Dachshund Image Generator")
    gr.Examples(examples, inputs=demo.input_components)

# Add GPUZero functionality
demo.queue()
demo.launch()