fbnnb commited on
Commit
2e021a7
·
verified ·
1 Parent(s): 9b56d6e

Update gradio_app.py

Browse files
Files changed (1) hide show
  1. gradio_app.py +1 -0
gradio_app.py CHANGED
@@ -51,6 +51,7 @@ def extract_frames(video_path):
51
 
52
  return frame_list
53
 
 
54
  class Image2Video():
55
  def __init__(self,result_dir='./tmp/',gpu_num=1,resolution='256_256') -> None:
56
  self.resolution = (int(resolution.split('_')[0]), int(resolution.split('_')[1])) #hw
 
51
 
52
  return frame_list
53
 
54
+ @spaces.GPU(duration=30)
55
  class Image2Video():
56
  def __init__(self,result_dir='./tmp/',gpu_num=1,resolution='256_256') -> None:
57
  self.resolution = (int(resolution.split('_')[0]), int(resolution.split('_')[1])) #hw