Spaces:
Runtime error
Runtime error
Download log_utils.py from EuroPython2022/mediapipe-hands: direct link, hf CLI and curl.
- Browser
- Download file 246 Bytes
-
https://huggingface.co/spaces/EuroPython2022/mediapipe-hands/resolve/main/log_utils.py
- Command line
-
hf download hf://spaces/EuroPython2022/mediapipe-hands/log_utils.py
-
curl -L -o log_utils.py https://huggingface.co/spaces/EuroPython2022/mediapipe-hands/resolve/main/log_utils.py
246 Bytes
| import logging | |
| logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') | |
| def get_logger(name=None, level=logging.INFO): | |
| """Return a logger""" | |
| logger = logging.getLogger(name) | |
| logger.setLevel(level) | |
| return logger |