Spaces:
Runtime error
Runtime error
Download context_vars.py from datasysdev/trl-lora-without-regret: direct link, hf CLI and curl.
- Browser
- Download file 570 Bytes
-
https://huggingface.co/spaces/datasysdev/trl-lora-without-regret/resolve/9add9b3d02f606a68e3b0482a265d380ece72f8c/context_vars.py
- Command line
-
hf download hf://spaces/datasysdev/trl-lora-without-regret@9add9b3d02f606a68e3b0482a265d380ece72f8c/context_vars.py
-
curl -L -o context_vars.py https://huggingface.co/spaces/datasysdev/trl-lora-without-regret/resolve/9add9b3d02f606a68e3b0482a265d380ece72f8c/context_vars.py
570 Bytes
| import contextvars | |
| from typing import TYPE_CHECKING | |
| if TYPE_CHECKING: | |
| from trackio.run import Run | |
| current_run: contextvars.ContextVar["Run | None"] = contextvars.ContextVar( | |
| "current_run", default=None | |
| ) | |
| current_project: contextvars.ContextVar[str | None] = contextvars.ContextVar( | |
| "current_project", default=None | |
| ) | |
| current_server: contextvars.ContextVar[str | None] = contextvars.ContextVar( | |
| "current_server", default=None | |
| ) | |
| current_share_server: contextvars.ContextVar[str | None] = contextvars.ContextVar( | |
| "current_share_server", default=None | |
| ) | |