File size: 411 Bytes
f7e2ae6
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"""FastAPI application factory for Kant."""
from openenv.core.env_server.http_server import create_app
from env.models import GameAction, GameObservation
from env.environment import KantEnvironment
from constant_definitions.game_constants import MAX_CONCURRENT_ENVS

app = create_app(
    KantEnvironment,
    GameAction,
    GameObservation,
    env_name="kant",
    max_concurrent_envs=MAX_CONCURRENT_ENVS,
)