Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Download src/core/tools/__init__.py from sergiopaniego/coding-env: direct link, hf CLI and curl.
- Browser
- Download file 604 Bytes
-
https://huggingface.co/spaces/sergiopaniego/coding-env/resolve/main/src/core/tools/__init__.py
- Command line
-
hf download hf://spaces/sergiopaniego/coding-env/src/core/tools/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/sergiopaniego/coding-env/resolve/main/src/core/tools/__init__.py
604 Bytes
| # 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. | |
| """Core tools for code execution and other utilities.""" | |
| from .git_server_client import GitServerClient, RepoInfo | |
| try: | |
| from .local_python_executor import PyExecutor | |
| except ModuleNotFoundError: | |
| # smolagents is optional for environments that only need Git tooling. | |
| PyExecutor = None # type: ignore[assignment] | |
| __all__ = [ | |
| "PyExecutor", | |
| "GitServerClient", | |
| "RepoInfo", | |
| ] | |