CultriX commited on
Commit
615ce1d
1 Parent(s): 0329931

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -49,7 +49,7 @@ def process_frame(frame, bg_type, bg, fast_mode, bg_frame_index, background_fram
49
  print(f"Error processing frame: {e}")
50
  return frame, bg_frame_index
51
 
52
- @spaces.GPU
53
  def fn(vid, bg_type="Color", bg_image=None, bg_video=None, color="#00FF00", fps=0, video_handling="slow_down", fast_mode=True, max_workers=6):
54
  try:
55
  start_time = time.time() # Start the timer
 
49
  print(f"Error processing frame: {e}")
50
  return frame, bg_frame_index
51
 
52
+ @spaces.GPU(duration=130)
53
  def fn(vid, bg_type="Color", bg_image=None, bg_video=None, color="#00FF00", fps=0, video_handling="slow_down", fast_mode=True, max_workers=6):
54
  try:
55
  start_time = time.time() # Start the timer