Spaces:
Sleeping
Sleeping
Download app/core/request_context.py from vara201/simple-rag: direct link, hf CLI and curl.
- Browser
- Download file 170 Bytes
-
https://huggingface.co/spaces/vara201/simple-rag/resolve/main/app/core/request_context.py
- Command line
-
hf download hf://spaces/vara201/simple-rag/app/core/request_context.py
-
curl -L -o request_context.py https://huggingface.co/spaces/vara201/simple-rag/resolve/main/app/core/request_context.py
170 Bytes
| from contextvars import ContextVar | |
| trace_id_ctx = ContextVar( | |
| "trace_id", | |
| default=None | |
| ) | |
| user_id_ctx = ContextVar( | |
| "user_id", | |
| default=None | |
| ) |