Spaces:
Running on Zero
Running on Zero
Upload app.py with huggingface_hub
Browse files279 unmodified lines280281282283284285286287288289279 unmodified linesdef _duration_estimate(audio, *args, **kwargs):"""Estimate GPU seconds from the audio length.Measured on ZeroGPU: 1.0 s GPU for a 7 s clip, 0.5 s for a 29 s clip(the 4-layer decoder is fast; long inputs mostly pay decode time per30 s chunk). This covers that comfortably, with headroom for thefirst-call cold start on a fresh ZeroGPU worker.`audio` arrives as a filepath; `*args`/`**kwargs` swallow the extraGradio parameters (progress) safely."""279 unmodified lines280281282283284285286287288289290279 unmodified linesdef _duration_estimate(audio, *args, **kwargs):"""Estimate GPU seconds from the audio length.Measured on ZeroGPU (RTX PRO 6000): ~1.0 s GPU for a 7 s clip, ~0.5 sfor a 29 s clip — the 4-layer decoder is fast, and long inputs mostlypay decode time per 30 s chunk. This formula covers that with headroomfor the first-call cold start on a fresh worker (capped at 20 s forthe 5-minute input limit).`audio` arrives as a filepath; `*args`/`**kwargs` swallow the extraGradio parameters (progress) safely."""
app.py+5-4