Spaces:
Runtime error
Runtime error
Download src/utils.py from Yash030/AI-Package-Doctor: direct link, hf CLI and curl.
- Browser
- Download file 500 Bytes
-
https://huggingface.co/spaces/Yash030/AI-Package-Doctor/resolve/main/src/utils.py
- Command line
-
hf download hf://spaces/Yash030/AI-Package-Doctor/src/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/Yash030/AI-Package-Doctor/resolve/main/src/utils.py
500 Bytes
| """ | |
| Utility functions for logging and helpers. | |
| """ | |
| import logging | |
| import sys | |
| def setup_logging(level=logging.INFO): | |
| """ | |
| Setup standard logging configuration. | |
| Args: | |
| level: Logging level (default: INFO) | |
| """ | |
| logging.basicConfig( | |
| level=level, | |
| format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', | |
| handlers=[ | |
| logging.StreamHandler(sys.stdout) | |
| ] | |
| ) | |
| return logging.getLogger(__name__) | |
| logger = setup_logging() | |