anvisinghh commited on
Commit
bb956e9
·
verified ·
1 Parent(s): 5d91949

Update env.py

Browse files
Files changed (1) hide show
  1. env.py +2 -2
env.py CHANGED
@@ -1,7 +1,7 @@
1
  import asyncio
2
  from typing import Optional
3
  from types import SimpleNamespace
4
- from openenv.core.env_server import Environment, EnvServer
5
  from models import MyEnvV4Observation, MyEnvV4Action
6
 
7
  class MyEnvV4Env(Environment):
@@ -87,4 +87,4 @@ my_env = MyEnvV4Env()
87
 
88
  # 2. Wrap it in an EnvServer to create the FastAPI app
89
  # This is what Docker/Uvicorn is looking for!
90
- app = EnvServer(my_env)
 
1
  import asyncio
2
  from typing import Optional
3
  from types import SimpleNamespace
4
+ from openenv.core.env_server import Environment, Server
5
  from models import MyEnvV4Observation, MyEnvV4Action
6
 
7
  class MyEnvV4Env(Environment):
 
87
 
88
  # 2. Wrap it in an EnvServer to create the FastAPI app
89
  # This is what Docker/Uvicorn is looking for!
90
+ app = Server(my_env)