Skip to content

Commit

Permalink
Fixed regression with unset output dir not explicitly assuming curren…
Browse files Browse the repository at this point in the history
…t dir as output
  • Loading branch information
beveradb committed Jun 17, 2024
1 parent 8afc6f5 commit 588a82f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions audio_separator/separator/separator.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ def __init__(
self.logger.info(f"Separator version {package_version} instantiating with output_dir: {output_dir}, output_format: {output_format}")

self.model_file_dir = model_file_dir

if output_dir is None:
output_dir = os.getcwd()
self.logger.info("Output directory not specified. Using current working directory.")

self.output_dir = output_dir

# Create the model directory if it does not exist
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

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

0 comments on commit 588a82f

Please sign in to comment.