Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -100,7 +100,7 @@ def create_run_command(args):
|
|
100 |
|
101 |
return cmd
|
102 |
|
103 |
-
@spaces.GPU(duration=
|
104 |
def run_process(cmd):
|
105 |
"""Run command and return output"""
|
106 |
print(f"Running command: {' '.join(cmd)}")
|
@@ -128,7 +128,7 @@ def run_process(cmd):
|
|
128 |
|
129 |
return "\n".join(output)
|
130 |
|
131 |
-
@spaces.GPU(duration=
|
132 |
def process_motion_transfer(source, prompt, mt_repaint_option, mt_repaint_image):
|
133 |
"""Process video motion transfer task"""
|
134 |
try:
|
@@ -175,7 +175,7 @@ def process_motion_transfer(source, prompt, mt_repaint_option, mt_repaint_image)
|
|
175 |
print(f"Processing failed: {str(e)}\n{traceback.format_exc()}")
|
176 |
return None
|
177 |
|
178 |
-
@spaces.GPU(duration=
|
179 |
def process_camera_control(source, prompt, camera_motion, tracking_method):
|
180 |
"""Process camera control task"""
|
181 |
try:
|
@@ -216,7 +216,7 @@ def process_camera_control(source, prompt, camera_motion, tracking_method):
|
|
216 |
print(f"Processing failed: {str(e)}\n{traceback.format_exc()}")
|
217 |
return None
|
218 |
|
219 |
-
@spaces.GPU(duration=
|
220 |
def process_object_manipulation(source, prompt, object_motion, object_mask, tracking_method):
|
221 |
"""Process object manipulation task"""
|
222 |
try:
|
@@ -255,7 +255,7 @@ def process_object_manipulation(source, prompt, object_motion, object_mask, trac
|
|
255 |
print(f"Processing failed: {str(e)}\n{traceback.format_exc()}")
|
256 |
return None
|
257 |
|
258 |
-
@spaces.GPU(duration=
|
259 |
def process_mesh_animation(source, prompt, tracking_video, ma_repaint_option, ma_repaint_image):
|
260 |
"""Process mesh animation task"""
|
261 |
try:
|
|
|
100 |
|
101 |
return cmd
|
102 |
|
103 |
+
@spaces.GPU(duration=280)
|
104 |
def run_process(cmd):
|
105 |
"""Run command and return output"""
|
106 |
print(f"Running command: {' '.join(cmd)}")
|
|
|
128 |
|
129 |
return "\n".join(output)
|
130 |
|
131 |
+
@spaces.GPU(duration=280)
|
132 |
def process_motion_transfer(source, prompt, mt_repaint_option, mt_repaint_image):
|
133 |
"""Process video motion transfer task"""
|
134 |
try:
|
|
|
175 |
print(f"Processing failed: {str(e)}\n{traceback.format_exc()}")
|
176 |
return None
|
177 |
|
178 |
+
@spaces.GPU(duration=280)
|
179 |
def process_camera_control(source, prompt, camera_motion, tracking_method):
|
180 |
"""Process camera control task"""
|
181 |
try:
|
|
|
216 |
print(f"Processing failed: {str(e)}\n{traceback.format_exc()}")
|
217 |
return None
|
218 |
|
219 |
+
@spaces.GPU(duration=280)
|
220 |
def process_object_manipulation(source, prompt, object_motion, object_mask, tracking_method):
|
221 |
"""Process object manipulation task"""
|
222 |
try:
|
|
|
255 |
print(f"Processing failed: {str(e)}\n{traceback.format_exc()}")
|
256 |
return None
|
257 |
|
258 |
+
@spaces.GPU(duration=280)
|
259 |
def process_mesh_animation(source, prompt, tracking_video, ma_repaint_option, ma_repaint_image):
|
260 |
"""Process mesh animation task"""
|
261 |
try:
|