Spaces:
Sleeping
Sleeping
Commit ·
06261f2
1
Parent(s): 4a4dc2f
updated port number
Browse files- Dockerfile +1 -1
- my_env/openenv_my_env.egg-info/PKG-INFO +0 -9
- my_env/openenv_my_env.egg-info/SOURCES.txt +0 -18
- my_env/openenv_my_env.egg-info/dependency_links.txt +0 -1
- my_env/openenv_my_env.egg-info/entry_points.txt +0 -2
- my_env/openenv_my_env.egg-info/requires.txt +0 -5
- my_env/openenv_my_env.egg-info/top_level.txt +0 -1
- my_env/server/app.py +1 -1
- my_env/tasks.py +3 -0
- server/app.py +1 -1
- server/requirements.txt +2 -1
Dockerfile
CHANGED
|
@@ -100,4 +100,4 @@ RUN /app/.venv/bin/pip install openenv-core || \
|
|
| 100 |
pip install openenv-core
|
| 101 |
|
| 102 |
# CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "8000"]
|
| 103 |
-
CMD ["sh", "-c", "cd /app && uvicorn server.app:app --host 0.0.0.0 --port
|
|
|
|
| 100 |
pip install openenv-core
|
| 101 |
|
| 102 |
# CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "8000"]
|
| 103 |
+
CMD ["sh", "-c", "cd /app && uvicorn server.app:app --host 0.0.0.0 --port 7860"]
|
my_env/openenv_my_env.egg-info/PKG-INFO
DELETED
|
@@ -1,9 +0,0 @@
|
|
| 1 |
-
Metadata-Version: 2.4
|
| 2 |
-
Name: openenv-my_env
|
| 3 |
-
Version: 0.1.0
|
| 4 |
-
Summary: My Env environment for OpenEnv
|
| 5 |
-
Requires-Python: >=3.10
|
| 6 |
-
Requires-Dist: openenv-core[core]>=0.2.1
|
| 7 |
-
Provides-Extra: dev
|
| 8 |
-
Requires-Dist: pytest>=8.0.0; extra == "dev"
|
| 9 |
-
Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
my_env/openenv_my_env.egg-info/SOURCES.txt
DELETED
|
@@ -1,18 +0,0 @@
|
|
| 1 |
-
README.md
|
| 2 |
-
pyproject.toml
|
| 3 |
-
./__init__.py
|
| 4 |
-
./baseline.py
|
| 5 |
-
./client.py
|
| 6 |
-
./graders.py
|
| 7 |
-
./models.py
|
| 8 |
-
./tasks.py
|
| 9 |
-
./weather.py
|
| 10 |
-
openenv_my_env.egg-info/PKG-INFO
|
| 11 |
-
openenv_my_env.egg-info/SOURCES.txt
|
| 12 |
-
openenv_my_env.egg-info/dependency_links.txt
|
| 13 |
-
openenv_my_env.egg-info/entry_points.txt
|
| 14 |
-
openenv_my_env.egg-info/requires.txt
|
| 15 |
-
openenv_my_env.egg-info/top_level.txt
|
| 16 |
-
server/__init__.py
|
| 17 |
-
server/app.py
|
| 18 |
-
server/my_env_environment.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
my_env/openenv_my_env.egg-info/dependency_links.txt
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
|
|
|
|
|
|
my_env/openenv_my_env.egg-info/entry_points.txt
DELETED
|
@@ -1,2 +0,0 @@
|
|
| 1 |
-
[console_scripts]
|
| 2 |
-
server = my_env.server.app:main
|
|
|
|
|
|
|
|
|
my_env/openenv_my_env.egg-info/requires.txt
DELETED
|
@@ -1,5 +0,0 @@
|
|
| 1 |
-
openenv-core[core]>=0.2.1
|
| 2 |
-
|
| 3 |
-
[dev]
|
| 4 |
-
pytest>=8.0.0
|
| 5 |
-
pytest-cov>=4.0.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
my_env/openenv_my_env.egg-info/top_level.txt
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
my_env
|
|
|
|
|
|
my_env/server/app.py
CHANGED
|
@@ -238,7 +238,7 @@ async def inference_step(request: Request):
|
|
| 238 |
status_code=500
|
| 239 |
)
|
| 240 |
|
| 241 |
-
def main(host: str = "0.0.0.0", port: int =
|
| 242 |
"""
|
| 243 |
Entry point for direct execution via uv run or python -m.
|
| 244 |
"""
|
|
|
|
| 238 |
status_code=500
|
| 239 |
)
|
| 240 |
|
| 241 |
+
def main(host: str = "0.0.0.0", port: int = 7860):
|
| 242 |
"""
|
| 243 |
Entry point for direct execution via uv run or python -m.
|
| 244 |
"""
|
my_env/tasks.py
CHANGED
|
@@ -8,6 +8,7 @@ TASKS = [
|
|
| 8 |
"description": "Keep soil moisture between 40–70% for 7 days.",
|
| 9 |
"max_steps": 7,
|
| 10 |
"goal": "moisture_in_range"
|
|
|
|
| 11 |
},
|
| 12 |
{
|
| 13 |
"task_id": 2,
|
|
@@ -16,6 +17,7 @@ TASKS = [
|
|
| 16 |
"description": "Manage irrigation across 14 days with changing weather.",
|
| 17 |
"max_steps": 14,
|
| 18 |
"goal": "handle_weather"
|
|
|
|
| 19 |
},
|
| 20 |
{
|
| 21 |
"task_id": 3,
|
|
@@ -24,6 +26,7 @@ TASKS = [
|
|
| 24 |
"description": "Manage a full 30-day crop season across Seedling, Growing, and Mature stages.",
|
| 25 |
"max_steps": 30,
|
| 26 |
"goal": "full_season"
|
|
|
|
| 27 |
}
|
| 28 |
]
|
| 29 |
|
|
|
|
| 8 |
"description": "Keep soil moisture between 40–70% for 7 days.",
|
| 9 |
"max_steps": 7,
|
| 10 |
"goal": "moisture_in_range"
|
| 11 |
+
"reward_hint": "Maintain soil moisture within the optimal range."
|
| 12 |
},
|
| 13 |
{
|
| 14 |
"task_id": 2,
|
|
|
|
| 17 |
"description": "Manage irrigation across 14 days with changing weather.",
|
| 18 |
"max_steps": 14,
|
| 19 |
"goal": "handle_weather"
|
| 20 |
+
"reward_hint": "Maintain soil moisture within the optimal range."
|
| 21 |
},
|
| 22 |
{
|
| 23 |
"task_id": 3,
|
|
|
|
| 26 |
"description": "Manage a full 30-day crop season across Seedling, Growing, and Mature stages.",
|
| 27 |
"max_steps": 30,
|
| 28 |
"goal": "full_season"
|
| 29 |
+
"reward_hint": "Maintain soil moisture within the optimal range."
|
| 30 |
}
|
| 31 |
]
|
| 32 |
|
server/app.py
CHANGED
|
@@ -238,7 +238,7 @@ async def inference_step(request: Request):
|
|
| 238 |
status_code=500
|
| 239 |
)
|
| 240 |
|
| 241 |
-
def main(host: str = "0.0.0.0", port: int =
|
| 242 |
"""
|
| 243 |
Entry point for direct execution via uv run or python -m.
|
| 244 |
"""
|
|
|
|
| 238 |
status_code=500
|
| 239 |
)
|
| 240 |
|
| 241 |
+
def main(host: str = "0.0.0.0", port: int = 7860):
|
| 242 |
"""
|
| 243 |
Entry point for direct execution via uv run or python -m.
|
| 244 |
"""
|
server/requirements.txt
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
# openenv[core]>=0.2.0
|
| 2 |
-
openenv=
|
|
|
|
| 3 |
fastapi>=0.115.0
|
| 4 |
uvicorn>=0.24.0
|
| 5 |
requests>=2.32.0
|
|
|
|
| 1 |
# openenv[core]>=0.2.0
|
| 2 |
+
openenv-core[core]>=0.2.1
|
| 3 |
+
# openenv==0.1.13
|
| 4 |
fastapi>=0.115.0
|
| 5 |
uvicorn>=0.24.0
|
| 6 |
requests>=2.32.0
|