Spaces:
Running
on
Zero
Running
on
Zero
includes zeroGPU deco
Browse files- gradio_app.py +2 -0
gradio_app.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
import torch
|
| 2 |
import os
|
| 3 |
import time
|
|
@@ -48,6 +49,7 @@ snapshot_download(
|
|
| 48 |
|
| 49 |
# βββββββββββββββββββββ
|
| 50 |
|
|
|
|
| 51 |
def infer(input_video, input_mask):
|
| 52 |
|
| 53 |
video_length = 10 # The maximum length of output video
|
|
|
|
| 1 |
+
import spaces
|
| 2 |
import torch
|
| 3 |
import os
|
| 4 |
import time
|
|
|
|
| 49 |
|
| 50 |
# βββββββββββββββββββββ
|
| 51 |
|
| 52 |
+
@spaces.GPU(duration=120)
|
| 53 |
def infer(input_video, input_mask):
|
| 54 |
|
| 55 |
video_length = 10 # The maximum length of output video
|