Spaces:
Running
Running
Download src/services/brain_context.py from Leon4gr45/brain: direct link, hf CLI and curl.
- Browser
- Download file 279 Bytes
-
https://huggingface.co/spaces/Leon4gr45/brain/resolve/main/src/services/brain_context.py
- Command line
-
hf download hf://spaces/Leon4gr45/brain/src/services/brain_context.py
-
curl -L -o brain_context.py https://huggingface.co/spaces/Leon4gr45/brain/resolve/main/src/services/brain_context.py
279 Bytes
| from contextvars import ContextVar | |
| from dataclasses import dataclass | |
| class BrainContext: | |
| workspace_slug: str | |
| brain_id: str | |
| auth_type: str | |
| brain_context_var: ContextVar[BrainContext | None] = ContextVar( | |
| "brain_context", default=None | |
| ) | |