Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,17 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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()
|