Spaces:
Runtime error
Runtime error
123LETSPLAY
commited on
Commit
•
d7c4592
1
Parent(s):
39632b2
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
import gradio as gr
|
2 |
from diffusers import DiffusionPipeline
|
3 |
|
4 |
-
# Load the
|
5 |
-
pipe = DiffusionPipeline.from_pretrained("
|
6 |
|
7 |
def generate_image(prompt):
|
8 |
# Generate the image from the prompt
|
@@ -14,8 +14,8 @@ iface = gr.Interface(
|
|
14 |
fn=generate_image,
|
15 |
inputs=gr.Textbox(label="Enter your prompt", placeholder="e.g. Astronaut in a jungle"),
|
16 |
outputs=gr.Image(label="Generated Image"),
|
17 |
-
title="Diffusion
|
18 |
-
description="Generate images using
|
19 |
)
|
20 |
|
21 |
if __name__ == "__main__":
|
|
|
1 |
import gradio as gr
|
2 |
from diffusers import DiffusionPipeline
|
3 |
|
4 |
+
# Load the Stable Diffusion pipeline
|
5 |
+
pipe = DiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v-1-4")
|
6 |
|
7 |
def generate_image(prompt):
|
8 |
# Generate the image from the prompt
|
|
|
14 |
fn=generate_image,
|
15 |
inputs=gr.Textbox(label="Enter your prompt", placeholder="e.g. Astronaut in a jungle"),
|
16 |
outputs=gr.Image(label="Generated Image"),
|
17 |
+
title="Stable Diffusion Image Generator",
|
18 |
+
description="Generate images using Stable Diffusion based on your prompts."
|
19 |
)
|
20 |
|
21 |
if __name__ == "__main__":
|