Download app/engine/logger.py from JPBianchi/FinRAG: direct link, hf CLI and curl.
- Browser
- Download file 329 Bytes
-
https://huggingface.co/spaces/JPBianchi/FinRAG/resolve/main/app/engine/logger.py
- Command line
-
hf download hf://spaces/JPBianchi/FinRAG/app/engine/logger.py
-
curl -L -o logger.py https://huggingface.co/spaces/JPBianchi/FinRAG/resolve/main/app/engine/logger.py
329 Bytes
| import os, logging | |
| environment = os.getenv("ENVIRONMENT", "dev") | |
| if environment == "dev": | |
| logger = logging.getLogger("uvicorn") | |
| else: | |
| logger = lambda x: _ | |
| # we should log also in production TODO | |
| # check how it works on HuggingFace, if possible | |
| # because we don't have access to the container's file system |