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

Update env.py

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