danielgi97
commited on
Commit
•
ae33a9a
1
Parent(s):
5215044
Update stable-app.py
Browse files- stable-app.py +1 -1
stable-app.py
CHANGED
@@ -3,7 +3,7 @@ from diffusers import StableDiffusionPipeline
|
|
3 |
import torch
|
4 |
|
5 |
def stable(prompt):
|
6 |
-
pipeline = DiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5", torch_dtype=torch.
|
7 |
return pipeline(prompt).images[0]
|
8 |
|
9 |
demo = gr.Interface(fn=stable, inputs="text", outputs="image")
|
|
|
3 |
import torch
|
4 |
|
5 |
def stable(prompt):
|
6 |
+
pipeline = DiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5", torch_dtype=torch.float16)
|
7 |
return pipeline(prompt).images[0]
|
8 |
|
9 |
demo = gr.Interface(fn=stable, inputs="text", outputs="image")
|