Download ds_batch_ocr/logging_utils.py from Gflorent/deepseek-ocr-job-code: direct link, hf CLI and curl.
- Browser
- Download file 311 Bytes
-
https://huggingface.co/datasets/Gflorent/deepseek-ocr-job-code/resolve/main/ds_batch_ocr/logging_utils.py
- Command line
-
hf download hf://datasets/Gflorent/deepseek-ocr-job-code/ds_batch_ocr/logging_utils.py
-
curl -L -o logging_utils.py https://huggingface.co/datasets/Gflorent/deepseek-ocr-job-code/resolve/main/ds_batch_ocr/logging_utils.py
311 Bytes
| from __future__ import annotations | |
| import logging | |
| import os | |
| def configure_logging() -> None: | |
| level = os.environ.get("LOG_LEVEL", "INFO").upper() | |
| logging.basicConfig( | |
| level=level, | |
| format="%(asctime)s | %(levelname)s | %(name)s | %(message)s", | |
| ) | |
| __all__ = ["configure_logging"] | |