Spaces:
Build error
Build error
Download util/clean.py from markytools/strexp: direct link, hf CLI and curl.
- Browser
- Download file 207 Bytes
-
https://huggingface.co/spaces/markytools/strexp/resolve/main/util/clean.py
- Command line
-
hf download hf://spaces/markytools/strexp/util/clean.py
-
curl -L -o clean.py https://huggingface.co/spaces/markytools/strexp/resolve/main/util/clean.py
207 Bytes
| import settings | |
| import os | |
| def clean(): | |
| filelist = [f for f in os.listdir(settings.OUTPUT_FOLDER) if f.endswith('mmap')] | |
| for f in filelist: | |
| os.remove(os.path.join(settings.OUTPUT_FOLDER, f)) | |