Spaces:
Sleeping
Sleeping
Download src/mlProject/__init__.py from pritesh29/Wine-Quality-Prediction: direct link, hf CLI and curl.
- Browser
- Download file 447 Bytes
-
https://huggingface.co/spaces/pritesh29/Wine-Quality-Prediction/resolve/main/src/mlProject/__init__.py
- Command line
-
hf download hf://spaces/pritesh29/Wine-Quality-Prediction/src/mlProject/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/pritesh29/Wine-Quality-Prediction/resolve/main/src/mlProject/__init__.py
447 Bytes
| import os | |
| import sys | |
| import logging | |
| logging_str = "[%(asctime)s: %(levelname)s: %(module)s: %(message)s]" | |
| log_dir = "logs" | |
| log_filepath = os.path.join(log_dir, "running_logs.log") | |
| os.makedirs(log_dir, exist_ok = True) | |
| logging.basicConfig( | |
| level=logging.INFO, | |
| format = logging_str, | |
| handlers=[ | |
| logging.FileHandler(log_filepath), | |
| logging.StreamHandler(sys.stdout) | |
| ] | |
| ) | |
| logger = logging.getLogger("mlProjectLogger") |