Spaces:
Build error
Build error
Download src/__init__.py from c-gohlke/LitRL-Inference: direct link, hf CLI and curl.
- Browser
- Download file 277 Bytes
-
https://huggingface.co/spaces/c-gohlke/LitRL-Inference/resolve/main/src/__init__.py
- Command line
-
hf download hf://spaces/c-gohlke/LitRL-Inference/src/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/c-gohlke/LitRL-Inference/resolve/main/src/__init__.py
277 Bytes
| import logging | |
| class EndpointFilter(logging.Filter): | |
| def filter(self, record: logging.LogRecord) -> bool: | |
| return record.getMessage().find("/connect_four/bot_progress") == -1 | |
| # Filter out /endpoint | |
| logging.getLogger("uvicorn.access").addFilter(EndpointFilter()) | |