Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
import torch
|
3 |
import diffusers
|
4 |
-
pipe=diffusers.StableDiffusionPipeline.from_pretrained('stabilityai/stable-diffusion-2-1',torch_dtype=torch.
|
5 |
pipe.to('cuda')
|
6 |
def gen(prompt):
|
7 |
img=pipe(prompt)[0][0]
|
|
|
1 |
import gradio as gr
|
2 |
import torch
|
3 |
import diffusers
|
4 |
+
pipe=diffusers.StableDiffusionPipeline.from_pretrained('stabilityai/stable-diffusion-2-1',torch_dtype=torch.float32)
|
5 |
pipe.to('cuda')
|
6 |
def gen(prompt):
|
7 |
img=pipe(prompt)[0][0]
|