anvisinghh commited on
Commit
c02a9fe
·
verified ·
1 Parent(s): 108569c

Update env.py

Browse files
Files changed (1) hide show
  1. env.py +7 -4
env.py CHANGED
@@ -80,8 +80,11 @@ class MyEnvV4Env(Environment):
80
  """Simulated helper for local/containerized runs."""
81
  return cls()
82
 
83
- # Create the environment instance
84
- env = MyEnvV4Env()
85
 
86
- # This is the 'app' that Docker and Uvicorn are looking for
87
- app = env.app
 
 
 
 
 
80
  """Simulated helper for local/containerized runs."""
81
  return cls()
82
 
83
+ from openenv.core.env_server import EnvServer
 
84
 
85
+ # 1. Create your environment instance
86
+ 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).app