Krokodilpirat commited on
Commit
9e2a973
·
verified ·
1 Parent(s): c310049

Zero_GPU_duration_fix

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -718,7 +718,7 @@ blip_generated_name = ""
718
  original_filename = ""
719
 
720
  # --- MAIN INFERENCE FUNCTION WITH ZEROGPU DECORATOR ---
721
- @spaces.GPU
722
  def infer_video_depth_from_source(upload_video, video_url, filename, use_blip, create_thumbnail, *args):
723
  """Process video to generate depth maps and RGBD output with ZeroGPU acceleration"""
724
  try:
 
718
  original_filename = ""
719
 
720
  # --- MAIN INFERENCE FUNCTION WITH ZEROGPU DECORATOR ---
721
+ @spaces.GPU(duration=300) # 5 Minuten für Video-Processing
722
  def infer_video_depth_from_source(upload_video, video_url, filename, use_blip, create_thumbnail, *args):
723
  """Process video to generate depth maps and RGBD output with ZeroGPU acceleration"""
724
  try: