Spaces:
Running on Zero
Running on Zero
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -342,8 +342,8 @@ EMPTY_HTML = (
|
|
| 342 |
# ---------------------------------------------------------------------------
|
| 343 |
def _gpu_duration(state, fields_json, image=None, *args, **kwargs):
|
| 344 |
# measured on this Space: 21.4s text on a cold worker (incl. Triton JIT), 4.3s warm text,
|
| 345 |
-
#
|
| 346 |
-
return
|
| 347 |
|
| 348 |
|
| 349 |
@spaces.GPU(duration=_gpu_duration)
|
|
|
|
| 342 |
# ---------------------------------------------------------------------------
|
| 343 |
def _gpu_duration(state, fields_json, image=None, *args, **kwargs):
|
| 344 |
# measured on this Space: 21.4s text on a cold worker (incl. Triton JIT), 4.3s warm text,
|
| 345 |
+
# 24.1s single image on a cold worker, 9-11s warm
|
| 346 |
+
return 28 if image is not None else 25
|
| 347 |
|
| 348 |
|
| 349 |
@spaces.GPU(duration=_gpu_duration)
|