Ryukijano commited on
Commit
1baccce
·
1 Parent(s): d01f895

Decrease ZeroGPU duration to 60s to accommodate quota limits

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -405,7 +405,7 @@ def bootstrap_space():
405
  status_lines = [f"Sample cached at: {sample_path}"]
406
  return sample_path, sample_path, "Space loaded. Click 'Run BADAS + Reason' to begin.", "\n".join(status_lines)
407
 
408
- @spaces.GPU(duration=120)
409
  def warmup_models():
410
  return preload_runtime(
411
  preload_badas=True,
@@ -414,7 +414,7 @@ def warmup_models():
414
  )
415
 
416
 
417
- @spaces.GPU(duration=120)
418
  def run_pipeline_action(input_video_path):
419
  if not input_video_path:
420
  raise gr.Error("Upload a video or choose the sample clip first.")
@@ -422,7 +422,7 @@ def run_pipeline_action(input_video_path):
422
  return build_outputs(result["pipeline_payload"], result["logs"], str(input_video_path), result.get("predict_payload"))
423
 
424
 
425
- @spaces.GPU(duration=120)
426
  def run_predict_action(pipeline_payload, input_video_path, selection):
427
  if not pipeline_payload:
428
  raise gr.Error("Run BADAS + Reason before Predict.")
 
405
  status_lines = [f"Sample cached at: {sample_path}"]
406
  return sample_path, sample_path, "Space loaded. Click 'Run BADAS + Reason' to begin.", "\n".join(status_lines)
407
 
408
+ @spaces.GPU(duration=60)
409
  def warmup_models():
410
  return preload_runtime(
411
  preload_badas=True,
 
414
  )
415
 
416
 
417
+ @spaces.GPU(duration=60)
418
  def run_pipeline_action(input_video_path):
419
  if not input_video_path:
420
  raise gr.Error("Upload a video or choose the sample clip first.")
 
422
  return build_outputs(result["pipeline_payload"], result["logs"], str(input_video_path), result.get("predict_payload"))
423
 
424
 
425
+ @spaces.GPU(duration=60)
426
  def run_predict_action(pipeline_payload, input_video_path, selection):
427
  if not pipeline_payload:
428
  raise gr.Error("Run BADAS + Reason before Predict.")