• Pedro Cuenca's avatar
    Use "hub" directory for cache instead of "diffusers" (#2005) · 477aaa96
    Pedro Cuenca authored
    
    
    * Use "hub" directory for cache instead of "diffusers"
    
    * Import cache locations from huggingface_hub
    
    I verified that the constants are available in huggingface_hub version
    0.10.0, which is the minimum we require.
    Co-authored-by: default avatarLucain Pouget <lucainp@gmail.com>
    
    * make style
    
    * Move cached directories to new location.
    
    * make style
    
    * Apply suggestions by @Wauplin
    Co-authored-by: default avatarLucain <lucainp@gmail.com>
    
    * Fix is_file
    
    * Ignore symlinks.
    
    Especially important if we want to ensure that the user may want to invoke the
    process again later, if they are keeping multiple envs with different
    versions.
    
    * Style
    
    ---------
    Co-authored-by: default avatarLucain Pouget <lucainp@gmail.com>
    477aaa96
hub_utils.py 8.11 KB