Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -247,7 +247,7 @@ def preprocess_for_removal(images, masks):
|
|
| 247 |
|
| 248 |
MAX_PROC_SIDE = None # None = native resolution; set e.g. 1280 if you hit OOM
|
| 249 |
|
| 250 |
-
@spaces.GPU(duration=
|
| 251 |
def inference_and_return_video(dilation_iterations, num_inference_steps, video_path, video_state):
|
| 252 |
if video_state.get("video_path") is None:
|
| 253 |
video_state["video_path"] = video_path
|
|
|
|
| 247 |
|
| 248 |
MAX_PROC_SIDE = None # None = native resolution; set e.g. 1280 if you hit OOM
|
| 249 |
|
| 250 |
+
@spaces.GPU(duration=1200) # 1080p is heavy — give it time
|
| 251 |
def inference_and_return_video(dilation_iterations, num_inference_steps, video_path, video_state):
|
| 252 |
if video_state.get("video_path") is None:
|
| 253 |
video_state["video_path"] = video_path
|