smartdigitalnetworks commited on
Commit
7c271a9
·
verified ·
1 Parent(s): bc7bbfb

Update app_diffusers.py

Browse files
Files changed (1) hide show
  1. app_diffusers.py +1 -1
app_diffusers.py CHANGED
@@ -25,7 +25,7 @@ pipe = OvisImagePipeline.from_pretrained(
25
  token=hf_token,
26
  torch_dtype=torch.bfloat16
27
  )
28
- pipe.to("cuda")
29
 
30
  @spaces.GPU(duration=75)
31
  def generate(prompt, img_height=1024, img_width=1024, seed=42, steps=50, guidance_scale=5.0):
 
25
  token=hf_token,
26
  torch_dtype=torch.bfloat16
27
  )
28
+ pipe.to(device)
29
 
30
  @spaces.GPU(duration=75)
31
  def generate(prompt, img_height=1024, img_width=1024, seed=42, steps=50, guidance_scale=5.0):