Spaces:
Running
on
Zero
Running
on
Zero
zeroGPU ready
Browse files
app.py
CHANGED
@@ -11,6 +11,7 @@ Date: 2025/01/15
|
|
11 |
"""
|
12 |
|
13 |
import torch
|
|
|
14 |
import sys
|
15 |
import os
|
16 |
import subprocess
|
@@ -397,6 +398,7 @@ def get_overlap_slide_window_indices(video_length, window_size, window_overlap):
|
|
397 |
def random_seed():
|
398 |
return random.randint(0, 10000)
|
399 |
|
|
|
400 |
def infer(lq_sequence, task_name, mask, seed, progress=gr.Progress(track_tqdm=True)):
|
401 |
|
402 |
if is_shared_ui:
|
|
|
11 |
"""
|
12 |
|
13 |
import torch
|
14 |
+
import spaces
|
15 |
import sys
|
16 |
import os
|
17 |
import subprocess
|
|
|
398 |
def random_seed():
|
399 |
return random.randint(0, 10000)
|
400 |
|
401 |
+
@spaces.GPU(duration=180)
|
402 |
def infer(lq_sequence, task_name, mask, seed, progress=gr.Progress(track_tqdm=True)):
|
403 |
|
404 |
if is_shared_ui:
|