frascuchon HF Staff commited on
Commit
772a16e
·
1 Parent(s): deeafd7

fix: proper output file naming

Browse files
Files changed (1) hide show
  1. tools/combine_tracks.py +1 -1
tools/combine_tracks.py CHANGED
@@ -280,7 +280,7 @@ def create_medley(
280
 
281
  if output_path is None:
282
  tmp_dir = tempfile.mkdtemp(prefix="mcp-medley-")
283
- output = Path(tmp_dir) / "unidos_hyper_medley.mp3"
284
  else:
285
  output = Path(output_path).expanduser().resolve()
286
  output.parent.mkdir(parents=True, exist_ok=True)
 
280
 
281
  if output_path is None:
282
  tmp_dir = tempfile.mkdtemp(prefix="mcp-medley-")
283
+ output = Path(tmp_dir) / f"{vocals.name}_{instrumental.name}_medley.mp3"
284
  else:
285
  output = Path(output_path).expanduser().resolve()
286
  output.parent.mkdir(parents=True, exist_ok=True)