提交 2c286f25 编写于 作者: F Faylixe

🐛 fix model download

上级 a4d668b6
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册