fffiloni commited on
Commit
7b0a8f1
Β·
verified Β·
1 Parent(s): 6bf4cc9

includes zeroGPU deco

Browse files
Files changed (1) hide show
  1. gradio_app.py +2 -0
gradio_app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import torch
2
  import os
3
  import time
@@ -48,6 +49,7 @@ snapshot_download(
48
 
49
  # β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
50
 
 
51
  def infer(input_video, input_mask):
52
 
53
  video_length = 10 # The maximum length of output video
 
1
+ import spaces
2
  import torch
3
  import os
4
  import time
 
49
 
50
  # β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
51
 
52
+ @spaces.GPU(duration=120)
53
  def infer(input_video, input_mask):
54
 
55
  video_length = 10 # The maximum length of output video