Download fix_cache.py from endyaris/Test2: direct link, hf CLI and curl.
- Browser
- Download file 190 Bytes
-
https://huggingface.co/spaces/endyaris/Test2/resolve/main/fix_cache.py
- Command line
-
hf download hf://spaces/endyaris/Test2/fix_cache.py
-
curl -L -o fix_cache.py https://huggingface.co/spaces/endyaris/Test2/resolve/main/fix_cache.py
190 Bytes
| from transformers.utils import move_cache | |
| def remove_old_cache(): | |
| print("Migrating old cache to the new format...") | |
| move_cache() | |
| print("Cache migration completed successfully.") |