ghosthamlet commited on
Commit
9330898
1 Parent(s): 537e2b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,8 +2,8 @@ import gradio as gr
2
  import torch
3
  from diffusers import UnCLIPPipeline
4
 
5
- pipe = UnCLIPPipeline.from_pretrained("kakaobrain/karlo-v1-alpha", torch_dtype=torch.float16)
6
- pipe = pipe.to("cuda")
7
 
8
  def run(prompt):
9
  images = pipe(prompt, num_images_per_prompt=6).images
 
2
  import torch
3
  from diffusers import UnCLIPPipeline
4
 
5
+ pipe = UnCLIPPipeline.from_pretrained("kakaobrain/karlo-v1-alpha") # , torch_dtype=torch.float16
6
+ pipe = pipe.to("cpu")
7
 
8
  def run(prompt):
9
  images = pipe(prompt, num_images_per_prompt=6).images