Spaces:
Running
Running
Hermes Agent
fix: copy gateway directory in Dockerfile and insert BASE_DIR into sys.path to eliminate ModuleNotFoundError
d262fc5 Download proxy.py from Jishnupg/Opencode-Cli: direct link, hf CLI and curl.
- Browser
- Download file 382 Bytes
-
https://huggingface.co/spaces/Jishnupg/Opencode-Cli/resolve/main/proxy.py
- Command line
-
hf download hf://spaces/Jishnupg/Opencode-Cli/proxy.py
-
curl -L -o proxy.py https://huggingface.co/spaces/Jishnupg/Opencode-Cli/resolve/main/proxy.py
382 Bytes
| """ | |
| OpenCode Space Gateway Entrypoint | |
| ================================ | |
| Imports the modular FastAPI application from the gateway package. | |
| """ | |
| import sys | |
| import os | |
| # Ensure the directory containing proxy.py is in sys.path | |
| BASE_DIR = os.path.dirname(os.path.abspath(__file__)) | |
| if BASE_DIR not in sys.path: | |
| sys.path.insert(0, BASE_DIR) | |
| from gateway import app | |
| __all__ = ["app"] | |