Icar commited on
Commit
a2d1cee
1 Parent(s): dc1c9c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.float16)
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]