diff --git a/artifact_comfyui_download.sh b/artifact_comfyui_download.sh index bf22e4b..ccb560d 100755 --- a/artifact_comfyui_download.sh +++ b/artifact_comfyui_download.sh @@ -323,11 +323,11 @@ filename_filter = sys.argv[3] # Try both with and without 'hub/' subdirectory for compatibility cache_path = Path(cache_dir) repo_path = repo_id.replace('/', '--') -model_dir = cache_path / f'models--{repo_path}' +model_dir = cache_path / 'models--{0}'.format(repo_path) # Fallback to hub/ subdirectory if direct path doesn't exist if not model_dir.exists(): - model_dir = cache_path / 'hub' / f'models--{repo_path}' + model_dir = cache_path / 'hub' / 'models--{0}'.format(repo_path) if not model_dir.exists(): sys.exit(1)