Spaces:
Running
Running
Download server/app.py from SapphireGaze429/OpenSecOpsEnv2: direct link, hf CLI and curl.
- Browser
- Download file 539 Bytes
-
https://huggingface.co/spaces/SapphireGaze429/OpenSecOpsEnv2/resolve/main/server/app.py
- Command line
-
hf download hf://spaces/SapphireGaze429/OpenSecOpsEnv2/server/app.py
-
curl -L -o app.py https://huggingface.co/spaces/SapphireGaze429/OpenSecOpsEnv2/resolve/main/server/app.py
539 Bytes
| """ | |
| server/app.py — Root-level server entry point for OpenSecOpsEnv. | |
| The openenv validate tool expects to find the server at server/app.py | |
| with a main() function that starts the uvicorn server. | |
| """ | |
| import uvicorn | |
| from opensecops_env.server.app import app # noqa: F401 | |
| __all__ = ["app", "main"] | |
| def main() -> None: | |
| """Start the OpenSecOpsEnv FastAPI server.""" | |
| uvicorn.run( | |
| "opensecops_env.server.app:app", | |
| host="0.0.0.0", | |
| port=8000, | |
| workers=1, | |
| ) | |
| if __name__ == "__main__": | |
| main() | |