Spaces:
Runtime error
Runtime error
Download __init__.py from ragavrida/code-review-env: direct link, hf CLI and curl.
- Browser
- Download file 843 Bytes
-
https://huggingface.co/spaces/ragavrida/code-review-env/resolve/main/__init__.py
- Command line
-
hf download hf://spaces/ragavrida/code-review-env/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/ragavrida/code-review-env/resolve/main/__init__.py
843 Bytes
| """ | |
| CodeReviewEnv — MCP tool-calling RL environment for automated code review. | |
| """ | |
| from typing import Any | |
| try: | |
| from .models import CodeReviewAction, CodeReviewObservation, CodeReviewState, MCPAction, MCPObservation | |
| except ImportError: | |
| from models import CodeReviewAction, CodeReviewObservation, CodeReviewState, MCPAction, MCPObservation | |
| __all__ = [ | |
| "CodeReviewAction", | |
| "CodeReviewObservation", | |
| "CodeReviewState", | |
| "CodeReviewEnv", | |
| "MCPAction", | |
| "MCPObservation", | |
| ] | |
| def __getattr__(name: str) -> Any: | |
| if name == "CodeReviewEnv": | |
| try: | |
| from .client import CodeReviewEnv as _CodeReviewEnv | |
| except ImportError: | |
| from client import CodeReviewEnv as _CodeReviewEnv | |
| return _CodeReviewEnv | |
| raise AttributeError(f"module {__name__!r} has no attribute {name!r}") | |