mrbeliever commited on
Commit
8ad430c
1 Parent(s): 6cf94b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -1
app.py CHANGED
@@ -1,3 +1,17 @@
1
  import gradio as gr
2
 
3
- gr.load("models/stablediffusionapi/juggernaut-xl-v5").launch(title="Text To Image")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import gradio as gr
2
 
3
+ # Load the model
4
+ model = gr.load("models/stablediffusionapi/juggernaut-xl-v5")
5
+
6
+ # Customize the interface
7
+ iface = gr.Interface(
8
+ fn=model,
9
+ title="Text-to-Image Generator",
10
+ description="",
11
+ inputs="text",
12
+ outputs="image", # Set outputs to "image" for image output
13
+
14
+ )
15
+
16
+ # Launch the customized interface
17
+ iface.launch()