wangsssssss Muinez commited on
Commit
b1b9957
·
verified ·
1 Parent(s): 7e54fb9

Add duration param to save quota (#2)

Browse files

- Add duration param to save quota (ba84c888613ebe58872c9958b88115bf79367e55)


Co-authored-by: Stas <Muinez@users.noreply.huggingface.co>

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -46,7 +46,7 @@ class Pipeline:
46
  def __del__(self):
47
  self.tmp_dir.cleanup()
48
 
49
- @spaces.GPU
50
  @torch.no_grad()
51
  @torch.autocast(device_type="cuda", dtype=torch.bfloat16)
52
  def __call__(self, y, seed, num_steps, guidance, timeshift, order):
 
46
  def __del__(self):
47
  self.tmp_dir.cleanup()
48
 
49
+ @spaces.GPU(duration=5)
50
  @torch.no_grad()
51
  @torch.autocast(device_type="cuda", dtype=torch.bfloat16)
52
  def __call__(self, y, seed, num_steps, guidance, timeshift, order):