Spaces:
Sleeping
Sleeping
ibcplateformes Claude Opus 4.6 commited on
Commit ·
db1a474
1
Parent(s): 8a7554b
Fix BigVGAN _from_pretrained compatibility with newer huggingface_hub
Browse filesNewer versions of huggingface_hub's PyTorchModelHubMixin no longer pass
'proxies' and 'resume_download' kwargs. Make all _from_pretrained params
optional with defaults to ensure compatibility.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
modules/bigvgan/bigvgan.py
CHANGED
|
@@ -415,13 +415,13 @@ class BigVGAN(
|
|
| 415 |
cls,
|
| 416 |
*,
|
| 417 |
model_id: str,
|
| 418 |
-
revision: str,
|
| 419 |
-
cache_dir: str,
|
| 420 |
-
force_download: bool,
|
| 421 |
-
proxies: Optional[Dict],
|
| 422 |
-
resume_download: bool,
|
| 423 |
-
local_files_only: bool,
|
| 424 |
-
token: Union[str, bool, None],
|
| 425 |
map_location: str = "cpu", # Additional argument
|
| 426 |
strict: bool = False, # Additional argument
|
| 427 |
use_cuda_kernel: bool = False,
|
|
|
|
| 415 |
cls,
|
| 416 |
*,
|
| 417 |
model_id: str,
|
| 418 |
+
revision: str = None,
|
| 419 |
+
cache_dir: str = None,
|
| 420 |
+
force_download: bool = False,
|
| 421 |
+
proxies: Optional[Dict] = None,
|
| 422 |
+
resume_download: bool = False,
|
| 423 |
+
local_files_only: bool = False,
|
| 424 |
+
token: Union[str, bool, None] = None,
|
| 425 |
map_location: str = "cpu", # Additional argument
|
| 426 |
strict: bool = False, # Additional argument
|
| 427 |
use_cuda_kernel: bool = False,
|