eggarsway commited on
Commit
02f0f02
Β·
1 Parent(s): 4acbeb5
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,4 +1,4 @@
1
- #import spaces
2
  import sys
3
  import time
4
  import os
@@ -40,7 +40,7 @@ pipe = DiffusionPipeline.from_pretrained(model_path, torch_dtype=torch.float16)
40
  pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
41
  pipe.to('cuda')
42
 
43
- #@spaces.GPU(duration=120)
44
  def core(bundle):
45
  generator = torch.Generator().manual_seed(int(bundle["seed"]))
46
  result = pipe(
 
1
+ import spaces
2
  import sys
3
  import time
4
  import os
 
40
  pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
41
  pipe.to('cuda')
42
 
43
+ @spaces.GPU(duration=120)
44
  def core(bundle):
45
  generator = torch.Generator().manual_seed(int(bundle["seed"]))
46
  result = pipe(