Spaces:
Running on Zero
Running on Zero
Tighten ZeroGPU reservation to measured cost
Browse files
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,
|
| 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)
|