RiverZ commited on
Commit
4760077
·
verified ·
1 Parent(s): 59f9155

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -38,7 +38,7 @@ if args.enable_model_cpu_offload:
38
  else:
39
  pipe = pipe.to("cuda")
40
 
41
- @spaces.GPU
42
  def infer(edit_images,
43
  prompt,
44
  seed=666,
@@ -82,7 +82,7 @@ def infer(edit_images,
82
  width=width*2,
83
  guidance_scale=guidance_scale,
84
  num_inference_steps=num_inference_steps,
85
- generator=torch.Generator("cpu").manual_seed(seed)
86
  ).images[0]
87
 
88
  w,h = image.size
 
38
  else:
39
  pipe = pipe.to("cuda")
40
 
41
+ # @spaces.GPU
42
  def infer(edit_images,
43
  prompt,
44
  seed=666,
 
82
  width=width*2,
83
  guidance_scale=guidance_scale,
84
  num_inference_steps=num_inference_steps,
85
+ generator=torch.Generator().manual_seed(seed),
86
  ).images[0]
87
 
88
  w,h = image.size