diff --git a/scripts/misc/update_hub_code.py b/scripts/misc/update_hub_code.py index 708ff58b57..94005ced7d 100644 --- a/scripts/misc/update_hub_code.py +++ b/scripts/misc/update_hub_code.py @@ -29,7 +29,7 @@ def main(hf_repos_for_upload: List[str]): - if len(hf_repos_for_upload) == 1 and hf_repos_for_upload == ['all']: + if len(hf_repos_for_upload) == 1 and hf_repos_for_upload[0] == 'all': hf_repos_for_upload = _ALL_MODELS current_datetime = datetime.now()