Spaces:
Sleeping
Sleeping
Download utils.py from Detomo/meisaicheck-api: direct link, hf CLI and curl.
- Browser
- Download file 216 Bytes
-
https://huggingface.co/spaces/Detomo/meisaicheck-api/resolve/main/utils.py
- Command line
-
hf download hf://spaces/Detomo/meisaicheck-api/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/Detomo/meisaicheck-api/resolve/main/utils.py
216 Bytes
| import os | |
| from config import DATA_DIR, UPLOAD_DIR, OUTPUT_DIR | |
| def create_directories(): | |
| os.makedirs(DATA_DIR, exist_ok=True) | |
| os.makedirs(UPLOAD_DIR, exist_ok=True) | |
| os.makedirs(OUTPUT_DIR, exist_ok=True) | |