From b4124f58b3da3d31e2429187b6f348b6353eadb2 Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Sat, 4 Apr 2026 16:51:48 +0200 Subject: [PATCH] fix: BigVGANv2._from_pretrained() compat with newer huggingface_hub Newer hf_hub stopped passing proxies/resume_download/local_files_only/token to _from_pretrained(). Give them defaults so the call doesn't fail when these kwargs are omitted. Co-Authored-By: Claude Sonnet 4.6 --- selva_core/ext/bigvgan_v2/bigvgan.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/selva_core/ext/bigvgan_v2/bigvgan.py b/selva_core/ext/bigvgan_v2/bigvgan.py index 00f9da8..26972e2 100644 --- a/selva_core/ext/bigvgan_v2/bigvgan.py +++ b/selva_core/ext/bigvgan_v2/bigvgan.py @@ -365,10 +365,10 @@ class BigVGAN( revision: str, cache_dir: str, force_download: bool, - proxies: Optional[Dict], - resume_download: bool, - local_files_only: bool, - token: Union[str, bool, None], + proxies: Optional[Dict] = None, + resume_download: bool = False, + local_files_only: bool = False, + token: Union[str, bool, None] = None, map_location: str = "cpu", # Additional argument strict: bool = False, # Additional argument use_cuda_kernel: bool = False,