File size: 506 Bytes
33dd3ee
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
"""FastAPI application for the Sentinel Environment."""

from openenv.core.env_server import create_app

from models import SentinelAction, SentinelObservation
from server.sentinel_environment import SentinelEnvironment

app = create_app(
    SentinelEnvironment,
    SentinelAction,
    SentinelObservation,
    env_name="sentinel_env",
)


def main():
    """Entry point for direct execution."""
    import uvicorn

    uvicorn.run(app, host="0.0.0.0", port=8000)


if __name__ == "__main__":
    main()