multimodalart HF Staff commited on
Commit
196d84d
·
verified ·
1 Parent(s): 8a65eeb

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- # 10.9s single image on a warm worker
346
- return 34 if image is not None else 25
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)