diff --git a/audmodel/core/backend.py b/audmodel/core/backend.py index 0f04c08..7b8967c 100644 --- a/audmodel/core/backend.py +++ b/audmodel/core/backend.py @@ -100,23 +100,13 @@ def get_archive( with backend_interface.backend: # get archive - src_path = path - dst_path = os.path.join(tmp_root, "model.zip") - backend_interface.get_file( - src_path, - dst_path, + backend_interface.get_archive( + path, + tmp_root, version, verbose=verbose, ) - # extract files - audeer.extract_archive( - dst_path, - tmp_root, - keep_archive=False, - verbose=verbose, - ) - # move tmp folder to final destination if os.path.exists(root): os.rmdir(root) diff --git a/pyproject.toml b/pyproject.toml index dbcc1cc..8d6c258 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,7 +31,7 @@ classifiers = [ ] requires-python = '>=3.10' dependencies = [ - 'audbackend[all] >=2.2.3', + 'audbackend[all] @ git+https://github.com/audeering/audbackend.git@stream-extract', 'filelock', 'oyaml', ]