Skip to content

Commit 588a82f

Browse files
committed
Fixed regression with unset output dir not explicitly assuming current dir as output
1 parent 8afc6f5 commit 588a82f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

audio_separator/separator/separator.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ def __init__(
101101
self.logger.info(f"Separator version {package_version} instantiating with output_dir: {output_dir}, output_format: {output_format}")
102102

103103
self.model_file_dir = model_file_dir
104+
105+
if output_dir is None:
106+
output_dir = os.getcwd()
107+
self.logger.info("Output directory not specified. Using current working directory.")
108+
104109
self.output_dir = output_dir
105110

106111
# Create the model directory if it does not exist

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
66
name = "audio-separator"
7-
version = "0.17.3"
7+
version = "0.17.4"
88
description = "Easy to use audio stem separation, using various models from UVR trained primarily by @Anjok07"
99
authors = ["Andrew Beveridge <[email protected]>"]
1010
license = "MIT"

0 commit comments

Comments
 (0)