someone-in-the-world Claude Sonnet 4.6 commited on
Commit
541b505
·
1 Parent(s): f4a7c5c

Tighten ZeroGPU durations to p95-aligned values (10s fast, 30s high-detail)

Browse files

Based on 410 samples: fast p95=5s (max 13.3s), high-detail p95=18.3s
with 2.8% exceeding 30s. Accepts ~5% failure rate; users can retry
with remaining daily quota.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -352,7 +352,7 @@ def infer(images_b64_json, prompt, seed, randomize_seed, guidance_scale, steps,
352
  raise
353
 
354
 
355
- @spaces.GPU(duration=lambda *a, **kw: 30 if (len(a) > 7 and a[7] == "fast") else 90)
356
  def _infer_gpu(pil_images, prompt, seed, guidance_scale, steps, width, height, mode):
357
  _cuda_ok = torch.cuda.is_available()
358
  timer = _InferTimer(_cuda_ok)
 
352
  raise
353
 
354
 
355
+ @spaces.GPU(duration=lambda *a, **kw: 10 if (len(a) > 7 and a[7] == "fast") else 30)
356
  def _infer_gpu(pil_images, prompt, seed, guidance_scale, steps, width, height, mode):
357
  _cuda_ok = torch.cuda.is_available()
358
  timer = _InferTimer(_cuda_ok)