diff --git a/spleeter/audio/__init__.py b/spleeter/audio/__init__.py index c704aa1..c93b663 100644 --- a/spleeter/audio/__init__.py +++ b/spleeter/audio/__init__.py @@ -47,5 +47,5 @@ class STFTBackend(str, Enum): if backend == cls.AUTO: if len(tf.config.list_physical_devices('GPU')): return cls.TENSORFLOW - return STFTBackend.LIBROSA + return cls.LIBROSA return backend diff --git a/spleeter/model/provider/github.py b/spleeter/model/provider/github.py index 2210c41..ed89332 100644 --- a/spleeter/model/provider/github.py +++ b/spleeter/model/provider/github.py @@ -140,7 +140,7 @@ class GithubModelProvider(ModelProvider): url = f'{url}.tar.gz' logger.info(f'Downloading model archive {url}') with httpx.Client(http2=True) as client: - with client.strema('GET', url) as response: + with client.stream('GET', url) as response: response.raise_for_status() archive = NamedTemporaryFile(delete=False) try: