Tilawa Enhancer commited on
Commit
e278256
·
1 Parent(s): 64a4b77

S174: SV-C1 safaa positional args, SV-C2 tier chunked, SV-C3 indent, SV-C4 stale files

Browse files
Files changed (2) hide show
  1. app.py +7 -4
  2. true_engine_itiqan_v2_fixed.py +0 -0
app.py CHANGED
@@ -332,10 +332,13 @@ def _run_engine(job_id):
332
  job["out_path"].replace(".mp3", "_safaa_tmp.wav")
333
  if _is_safaa else job["out_path"]
334
  )
335
- cmd = ["python3", str(script),
336
- "-i", job["in_path"], "-o", _o_path]
337
- if not _is_safaa:
338
- cmd += ["--iterations", "3"]
 
 
 
339
  for rf in ref_files[:3]: cmd += ["--ref", str(rf)]
340
  proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,
341
  stderr=subprocess.STDOUT, text=True)
 
332
  job["out_path"].replace(".mp3", "_safaa_tmp.wav")
333
  if _is_safaa else job["out_path"]
334
  )
335
+ # S174-SV-C1: safaa uses positional args (input output), not -i/-o flags
336
+ if _is_safaa:
337
+ cmd = ["python3", str(script), job["in_path"], _o_path]
338
+ else:
339
+ cmd = ["python3", str(script),
340
+ "-i", job["in_path"], "-o", _o_path,
341
+ "--iterations", "3"]
342
  for rf in ref_files[:3]: cmd += ["--ref", str(rf)]
343
  proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,
344
  stderr=subprocess.STDOUT, text=True)
true_engine_itiqan_v2_fixed.py DELETED
The diff for this file is too large to render. See raw diff