mirror of
https://github.com/YuzuZensai/spleeter.git
synced 2026-01-06 04:32:43 +00:00
🐛 fix model download
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user