multimodalart HF Staff commited on
Commit
94b985a
·
verified ·
1 Parent(s): a125f54

Tighten ZeroGPU reservation to measured cost

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -253,7 +253,7 @@ def _estimate_duration(shape_file=None, labels_text="", num_points=pa.DEFAULT_NP
253
  n = int(num_points)
254
  except Exception:
255
  n = pa.DEFAULT_NPOINTS
256
- return int(min(90, 8 + 0.6 * mb + 2.0 * n / pa.DEFAULT_NPOINTS))
257
 
258
 
259
  @spaces.GPU(duration=_estimate_duration)
 
253
  n = int(num_points)
254
  except Exception:
255
  n = pa.DEFAULT_NPOINTS
256
+ return int(min(90, 5 + 0.6 * mb + 2.0 * n / pa.DEFAULT_NPOINTS))
257
 
258
 
259
  @spaces.GPU(duration=_estimate_duration)