Update stable-app.py
Browse files- stable-app.py +1 -1
stable-app.py
CHANGED
|
@@ -3,7 +3,7 @@ from diffusers import DiffusionPipeline
|
|
| 3 |
import torch
|
| 4 |
|
| 5 |
def stable(promt):
|
| 6 |
-
pipeline =
|
| 7 |
return pipeline(promt).images[0]
|
| 8 |
|
| 9 |
demo = gr.Interface(fn=stable, inputs="text", outputs="image")
|
|
|
|
| 3 |
import torch
|
| 4 |
|
| 5 |
def stable(promt):
|
| 6 |
+
pipeline = DiffusionPipeline.from_pretrained("sd-legacy/stable-diffusion-v1-5", torch_dtype=torch.float32)
|
| 7 |
return pipeline(promt).images[0]
|
| 8 |
|
| 9 |
demo = gr.Interface(fn=stable, inputs="text", outputs="image")
|