File size: 362 Bytes
d3f17cb
 
8ad430c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import gradio as gr

# Load the model
model = gr.load("models/stablediffusionapi/juggernaut-xl-v5")

# Customize the interface
iface = gr.Interface(
    fn=model,
    title="Text-to-Image Generator",
    description="",
    inputs="text",
    outputs="image",  # Set outputs to "image" for image output
      
)

# Launch the customized interface
iface.launch()