Download components/qefiles/runtime/qefiles_compat/server.py from bochencs/openenv-multidomain: direct link, hf CLI and curl.
- Browser
- Download file 543 Bytes
-
https://huggingface.co/datasets/bochencs/openenv-multidomain/resolve/main/components/qefiles/runtime/qefiles_compat/server.py
- Command line
-
hf download hf://datasets/bochencs/openenv-multidomain/components/qefiles/runtime/qefiles_compat/server.py
-
curl -L -o server.py https://huggingface.co/datasets/bochencs/openenv-multidomain/resolve/main/components/qefiles/runtime/qefiles_compat/server.py
543 Bytes
| """Serve the original terminal action and observation models.""" | |
| from openenv.core.env_server.http_server import create_app | |
| from .environment import CompatEnvironment, TerminalAction, TerminalObservation, verify_runtime | |
| verify_runtime() | |
| app = create_app(CompatEnvironment, TerminalAction, TerminalObservation, | |
| env_name='qefiles', max_concurrent_envs=1, mode='production') | |
| def main(): | |
| import uvicorn | |
| uvicorn.run(app, host='0.0.0.0', port=8000, workers=1, log_level='warning') | |
| if __name__ == '__main__': | |
| main() | |