Spaces:
Running on Zero
Running on Zero
Upload app.py with huggingface_hub
Browse files341 unmodified lines342343344345346347348349341 unmodified lines# ---------------------------------------------------------------------------def _gpu_duration(state, fields_json, image=None, *args, **kwargs):# measured on this Space: 21.4s text on a cold worker (incl. Triton JIT), 4.3s warm text,# 10.9s single image on a warm workerreturn 34 if image is not None else 25@spaces.GPU(duration=_gpu_duration)341 unmodified lines342343344345346347348349341 unmodified lines# ---------------------------------------------------------------------------def _gpu_duration(state, fields_json, image=None, *args, **kwargs):# measured on this Space: 21.4s text on a cold worker (incl. Triton JIT), 4.3s warm text,# 24.1s single image on a cold worker, 9-11s warmreturn 28 if image is not None else 25@spaces.GPU(duration=_gpu_duration)
app.py+2-2