Team Ai
Apppublic

Kolaps27/UI-layout-optimizer

sourceHugging Faceupdated 6mo agoView on Hugging Face
0likes
openenv_core.py23 linesDownload Raw Back to root
1from __future__ import annotations2 3from fastapi import FastAPI4 5 6def create_app(env_cls, action_model, observation_model) -> FastAPI:7    """Minimal local compatibility layer for this project.8 9    The upstream package offers a richer OpenEnv integration, but this repo10    only relies on receiving a FastAPI app instance to extend with routes.11    """12    app = FastAPI()13    app.state.env_cls = env_cls14    app.state.action_model = action_model15    app.state.observation_model = observation_model16    return app17 18 19def validate() -> None:20    from validate_local import main21 22    main()23