Spaces:
Running
Running
TM23-sanji commited on
Commit ·
59cdc6a
1
Parent(s): d9bc7db
feat: add server entry point, initialize complexity reasoning datasets, and update task configuration with null graders
Browse files- openenv.yaml +4 -0
- pyproject.toml +11 -2
- server/__init__.py +5 -0
- server/app.py +4 -0
openenv.yaml
CHANGED
|
@@ -19,13 +19,17 @@ tasks:
|
|
| 19 |
difficulty: easy
|
| 20 |
description: Easy problem - reasoning + code + tests
|
| 21 |
weight: 0.3
|
|
|
|
| 22 |
|
| 23 |
- id: task_medium
|
| 24 |
difficulty: medium
|
| 25 |
description: Medium problem - reasoning + code + tests
|
| 26 |
weight: 0.5
|
|
|
|
| 27 |
|
| 28 |
- id: task_hard
|
| 29 |
difficulty: hard
|
| 30 |
description: Hard problem - reasoning + code + tests
|
| 31 |
weight: 1.0
|
|
|
|
|
|
|
|
|
| 19 |
difficulty: easy
|
| 20 |
description: Easy problem - reasoning + code + tests
|
| 21 |
weight: 0.3
|
| 22 |
+
grader: null
|
| 23 |
|
| 24 |
- id: task_medium
|
| 25 |
difficulty: medium
|
| 26 |
description: Medium problem - reasoning + code + tests
|
| 27 |
weight: 0.5
|
| 28 |
+
grader: null
|
| 29 |
|
| 30 |
- id: task_hard
|
| 31 |
difficulty: hard
|
| 32 |
description: Hard problem - reasoning + code + tests
|
| 33 |
weight: 1.0
|
| 34 |
+
grader: null
|
| 35 |
+
|
pyproject.toml
CHANGED
|
@@ -1,14 +1,23 @@
|
|
| 1 |
[project]
|
| 2 |
name = "rust-dataset"
|
| 3 |
version = "0.1.0"
|
| 4 |
-
description = "
|
| 5 |
readme = "README.md"
|
| 6 |
-
requires-python = ">=3.
|
| 7 |
dependencies = [
|
| 8 |
"openai>=1.0.0",
|
| 9 |
"openenv-core",
|
| 10 |
"python-dotenv>=1.0.0",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
]
|
| 12 |
|
|
|
|
|
|
|
|
|
|
| 13 |
[tool.uv.sources]
|
| 14 |
openenv-core = { git = "https://github.com/meta-pytorch/OpenEnv.git" }
|
|
|
|
|
|
| 1 |
[project]
|
| 2 |
name = "rust-dataset"
|
| 3 |
version = "0.1.0"
|
| 4 |
+
description = "Algo Reasoning Environment - OpenEnv benchmark for Rust LeetCode"
|
| 5 |
readme = "README.md"
|
| 6 |
+
requires-python = ">=3.10"
|
| 7 |
dependencies = [
|
| 8 |
"openai>=1.0.0",
|
| 9 |
"openenv-core",
|
| 10 |
"python-dotenv>=1.0.0",
|
| 11 |
+
"fastapi>=0.100.0",
|
| 12 |
+
"uvicorn>=0.23.0",
|
| 13 |
+
"pydantic>=2.0.0",
|
| 14 |
+
"requests>=2.28.0",
|
| 15 |
+
"algo-reasoning-env",
|
| 16 |
]
|
| 17 |
|
| 18 |
+
[project.scripts]
|
| 19 |
+
server = "algo_reasoning_env.server.app:main"
|
| 20 |
+
|
| 21 |
[tool.uv.sources]
|
| 22 |
openenv-core = { git = "https://github.com/meta-pytorch/OpenEnv.git" }
|
| 23 |
+
algo-reasoning-env = { path = "algo_reasoning_env" }
|
server/__init__.py
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# server/__init__.py
|
| 2 |
+
# Re-exports from algo_reasoning_env.server for OpenEnv compatibility.
|
| 3 |
+
from algo_reasoning_env.server.app import app, main
|
| 4 |
+
|
| 5 |
+
__all__ = ["app", "main"]
|
server/app.py
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# server/app.py (this is just a re-export / forwarder)
|
| 2 |
+
from algo_reasoning_env.server.app import app, main
|
| 3 |
+
|
| 4 |
+
__all__ = ["app", "main"]
|