EXCAI commited on
Commit
6ded12b
·
verified ·
1 Parent(s): bc850f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -110,7 +110,7 @@ def create_run_command(args):
110
 
111
  return cmd
112
 
113
- @spaces.GPU(duration=180)
114
  def run_process(cmd):
115
  """Run command and return output"""
116
  print(f"Running command: {' '.join(cmd)}")
@@ -138,7 +138,7 @@ def run_process(cmd):
138
 
139
  return "\n".join(output)
140
 
141
- @spaces.GPU(duration=180)
142
  def process_motion_transfer(source, prompt, mt_repaint_option, mt_repaint_image):
143
  """Process video motion transfer task"""
144
  try:
@@ -185,7 +185,7 @@ def process_motion_transfer(source, prompt, mt_repaint_option, mt_repaint_image)
185
  print(f"Processing failed: {str(e)}\n{traceback.format_exc()}")
186
  return None
187
 
188
- @spaces.GPU(duration=180)
189
  def process_camera_control(source, prompt, camera_motion, tracking_method):
190
  """Process camera control task"""
191
  try:
@@ -226,7 +226,7 @@ def process_camera_control(source, prompt, camera_motion, tracking_method):
226
  print(f"Processing failed: {str(e)}\n{traceback.format_exc()}")
227
  return None
228
 
229
- @spaces.GPU(duration=180)
230
  def process_object_manipulation(source, prompt, object_motion, object_mask, tracking_method):
231
  """Process object manipulation task"""
232
  try:
@@ -265,7 +265,7 @@ def process_object_manipulation(source, prompt, object_motion, object_mask, trac
265
  print(f"Processing failed: {str(e)}\n{traceback.format_exc()}")
266
  return None
267
 
268
- @spaces.GPU(duration=180)
269
  def process_mesh_animation(source, prompt, tracking_video, ma_repaint_option, ma_repaint_image):
270
  """Process mesh animation task"""
271
  try:
 
110
 
111
  return cmd
112
 
113
+ @spaces.GPU(duration=240)
114
  def run_process(cmd):
115
  """Run command and return output"""
116
  print(f"Running command: {' '.join(cmd)}")
 
138
 
139
  return "\n".join(output)
140
 
141
+ @spaces.GPU(duration=240)
142
  def process_motion_transfer(source, prompt, mt_repaint_option, mt_repaint_image):
143
  """Process video motion transfer task"""
144
  try:
 
185
  print(f"Processing failed: {str(e)}\n{traceback.format_exc()}")
186
  return None
187
 
188
+ @spaces.GPU(duration=240)
189
  def process_camera_control(source, prompt, camera_motion, tracking_method):
190
  """Process camera control task"""
191
  try:
 
226
  print(f"Processing failed: {str(e)}\n{traceback.format_exc()}")
227
  return None
228
 
229
+ @spaces.GPU(duration=240)
230
  def process_object_manipulation(source, prompt, object_motion, object_mask, tracking_method):
231
  """Process object manipulation task"""
232
  try:
 
265
  print(f"Processing failed: {str(e)}\n{traceback.format_exc()}")
266
  return None
267
 
268
+ @spaces.GPU(duration=240)
269
  def process_mesh_animation(source, prompt, tracking_video, ma_repaint_option, ma_repaint_image):
270
  """Process mesh animation task"""
271
  try: