Spaces:
Sleeping
Sleeping
Update env.py
Browse files
env.py
CHANGED
|
@@ -80,8 +80,11 @@ class MyEnvV4Env(Environment):
|
|
| 80 |
"""Simulated helper for local/containerized runs."""
|
| 81 |
return cls()
|
| 82 |
|
| 83 |
-
|
| 84 |
-
env = MyEnvV4Env()
|
| 85 |
|
| 86 |
-
#
|
| 87 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|