JohnyBonony commited on
Commit
c07343b
·
verified ·
1 Parent(s): 9167eb0

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -84,9 +84,12 @@ def _normalize(src: str) -> str:
84
  return out
85
 
86
 
87
- # 110s: just under ZeroGPU's 120s hard ceiling for non-PRO accounts, and already
88
- # close to the whole 2-min/day free quota in one call.
89
- @spaces.GPU(duration=110)
 
 
 
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."