Spaces:
Runtime error
Runtime error
Commit
·
0b87cae
1
Parent(s):
7671d2b
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ from PIL import Image
|
|
| 5 |
pipe = StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5", torch_dtype=torch.float16)
|
| 6 |
pipe = pipe.to("cuda")
|
| 7 |
|
| 8 |
-
prompt =
|
| 9 |
image = pipe(prompt).images[0]
|
| 10 |
|
| 11 |
image = Image.fromarray(image)
|
|
|
|
| 5 |
pipe = StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5", torch_dtype=torch.float16)
|
| 6 |
pipe = pipe.to("cuda")
|
| 7 |
|
| 8 |
+
prompt = st.text_area("Enter a prompt: ")
|
| 9 |
image = pipe(prompt).images[0]
|
| 10 |
|
| 11 |
image = Image.fromarray(image)
|