Spaces:
Sleeping
Sleeping
Download __init__.py from LostDecimal/alien-physics-openenv: direct link, hf CLI and curl.
- Browser
- Download file 1.06 kB
-
https://huggingface.co/spaces/LostDecimal/alien-physics-openenv/resolve/main/__init__.py
- Command line
-
hf download hf://spaces/LostDecimal/alien-physics-openenv/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/LostDecimal/alien-physics-openenv/resolve/main/__init__.py
1.06 kB
| # Copyright (c) Meta Platforms, Inc. and affiliates. | |
| # All rights reserved. | |
| # | |
| # This source code is licensed under the BSD-style license found in the | |
| # LICENSE file in the root directory of this source tree. | |
| """Ontology Architect environment for code-driven scientific discovery.""" | |
| try: | |
| from .models import OntologyArchitectAction, OntologyArchitectObservation | |
| except ImportError: # pragma: no cover - source-root import during pytest collection. | |
| from models import OntologyArchitectAction, OntologyArchitectObservation | |
| def __getattr__(name: str): | |
| """Lazily import the client to avoid hard dependency at package import time.""" | |
| if name == "OntologyArchitectEnv": | |
| try: | |
| from .client import OntologyArchitectEnv | |
| except ImportError: # pragma: no cover - source-root import during pytest collection. | |
| from client import OntologyArchitectEnv | |
| return OntologyArchitectEnv | |
| raise AttributeError(name) | |
| __all__ = ["OntologyArchitectAction", "OntologyArchitectObservation", "OntologyArchitectEnv"] | |