Spaces:
Sleeping
Sleeping
Download src/trace/tracer.py from Viraj0112/rl_code_fix_env: direct link, hf CLI and curl.
- Browser
- Download file 336 Bytes
-
https://huggingface.co/spaces/Viraj0112/rl_code_fix_env/resolve/main/src/trace/tracer.py
- Command line
-
hf download hf://spaces/Viraj0112/rl_code_fix_env/src/trace/tracer.py
-
curl -L -o tracer.py https://huggingface.co/spaces/Viraj0112/rl_code_fix_env/resolve/main/src/trace/tracer.py
336 Bytes
| # Trace the folder | |
| class TraceCollector(): | |
| def __init__(self, steps: int = None): | |
| self.steps = [] # list of steps | |
| def logs(self, state, action, output): | |
| return self.steps.append({"state": state, | |
| "action": action, | |
| "output": output}) | |