Spaces:
Runtime error
Runtime error
Download deep_sort_torch/utils/asserts.py from Kaelan/fall-detection: direct link, hf CLI and curl.
- Browser
- Download file 316 Bytes
-
https://huggingface.co/spaces/Kaelan/fall-detection/resolve/main/deep_sort_torch/utils/asserts.py
- Command line
-
hf download hf://spaces/Kaelan/fall-detection/deep_sort_torch/utils/asserts.py
-
curl -L -o asserts.py https://huggingface.co/spaces/Kaelan/fall-detection/resolve/main/deep_sort_torch/utils/asserts.py
316 Bytes
| from os import environ | |
| def assert_in(file, files_to_check): | |
| if file not in files_to_check: | |
| raise AssertionError("{} does not exist in the list".format(str(file))) | |
| return True | |
| def assert_in_env(check_list: list): | |
| for item in check_list: | |
| assert_in(item, environ.keys()) | |
| return True | |