multimodalart HF Staff commited on
Commit
8a4d61f
·
verified ·
1 Parent(s): d00ab3b

Dynamic duration: 60s floor (keep 30% margin)

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -148,7 +148,7 @@ def _gpu_duration(final_prompt, mode, width, height, seed, do_local, progress=No
148
  budget = steps * _per_step(width, height) + DIFFUSION_OVERHEAD_S
149
  if do_local:
150
  budget += LOCAL_UPSAMPLE_S
151
- return max(30, int(math.ceil(budget * DURATION_MARGIN)))
152
 
153
 
154
  @spaces.GPU(duration=_gpu_duration, size="xlarge")
 
148
  budget = steps * _per_step(width, height) + DIFFUSION_OVERHEAD_S
149
  if do_local:
150
  budget += LOCAL_UPSAMPLE_S
151
+ return max(60, int(math.ceil(budget * DURATION_MARGIN)))
152
 
153
 
154
  @spaces.GPU(duration=_gpu_duration, size="xlarge")