Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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
|