Gatozu35 commited on
Commit
de5b271
·
verified ·
1 Parent(s): 1719129

Deploy ZONOS3 f9863b3

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -368,14 +368,13 @@ async def prepare(body: dict, session_id: str | None) -> dict:
368
 
369
  def gpu_seconds(body) -> int:
370
  """A job's worst-case GPU time. A take: 10 s, +60 s for encoding an uploaded clip in reference mode (a fresh GPU
371
- worker loads the dual codec first), and 0.15 s per character (twice that with a guidance twin, or with LACI: its
372
- probe and regenerations). An edit call: 90 s (a fresh worker loads Qwen3-ASR or FuseAlign or the dual codec on its
373
- first one)."""
374
  if isinstance(body, tuple):
375
  return 90
376
  clip = 60 if body["speaker_mode"] == "reference" and body["speaker_audio_base64"] else 0
377
  guided = any(float(body[k]) != 1.0 for k in ("speaker_cfg_scale", "tag_cfg_scale", "controls_cfg_scale"))
378
- return min(240, int(10 + clip + 0.15 * len(body["text"]) * (2 if guided or body["laci"] else 1)))
379
 
380
 
381
  # ------------------------------------------------------------------------------------------------- speech editing
 
368
 
369
  def gpu_seconds(body) -> int:
370
  """A job's worst-case GPU time. A take: 10 s, +60 s for encoding an uploaded clip in reference mode (a fresh GPU
371
+ worker loads the dual codec first), and 0.15 s per character (twice that with a guidance twin). An edit call: 90 s
372
+ (a fresh worker loads Qwen3-ASR or FuseAlign or the dual codec on its first one)."""
 
373
  if isinstance(body, tuple):
374
  return 90
375
  clip = 60 if body["speaker_mode"] == "reference" and body["speaker_audio_base64"] else 0
376
  guided = any(float(body[k]) != 1.0 for k in ("speaker_cfg_scale", "tag_cfg_scale", "controls_cfg_scale"))
377
+ return min(240, int(10 + clip + 0.15 * len(body["text"]) * (2 if guided else 1)))
378
 
379
 
380
  # ------------------------------------------------------------------------------------------------- speech editing