Spaces:
Build error
Build error
Download app.py from dhinesh-env/env: direct link, hf CLI and curl.
- Browser
- Download file 457 Bytes
-
https://huggingface.co/spaces/dhinesh-env/env/resolve/main/app.py
- Command line
-
hf download hf://spaces/dhinesh-env/env/app.py
-
curl -L -o app.py https://huggingface.co/spaces/dhinesh-env/env/resolve/main/app.py
457 Bytes
| from secure_codegen_env.models import SecureCodeAction, SecureCodeObservation | |
| from secure_codegen_env.server.secure_codegen_env import SecureCodegenEnv | |
| from openenv.core.env_server import create_app | |
| app = create_app( | |
| SecureCodegenEnv, | |
| SecureCodeAction, | |
| SecureCodeObservation, | |
| env_name="secure_codegen_env", | |
| ) | |
| def main() -> None: | |
| import uvicorn | |
| uvicorn.run(app, host="0.0.0.0", port=8000) | |
| if __name__ == "__main__": | |
| main() | |