Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
|
@@ -84,9 +84,12 @@ def _normalize(src: str) -> str:
|
|
| 84 |
return out
|
| 85 |
|
| 86 |
|
| 87 |
-
#
|
| 88 |
-
#
|
| 89 |
-
|
|
|
|
|
|
|
|
|
|
| 90 |
def run_benchmark(song_path):
|
| 91 |
if song_path is None:
|
| 92 |
return "Upload a song first."
|
|
|
|
| 84 |
return out
|
| 85 |
|
| 86 |
|
| 87 |
+
# Quota is billed on actual seconds used, not this ceiling — but ZeroGPU ranks
|
| 88 |
+
# shorter declared durations higher in its queue, so keep this close to real
|
| 89 |
+
# observed usage rather than padded to the 120s max. 60s covers up to roughly a
|
| 90 |
+
# 6-7 min song at the ~0.13s-inference-per-audio-second rate we measured on a
|
| 91 |
+
# ~3 min test song; bump it back up if you test something much longer.
|
| 92 |
+
@spaces.GPU(duration=60)
|
| 93 |
def run_benchmark(song_path):
|
| 94 |
if song_path is None:
|
| 95 |
return "Upload a song first."
|