AdithyaSK HF Staff commited on
Commit
2dab131
路
verified 路
1 Parent(s): 9ce3f34

Deploy SmolDataEnv Multi-harness | Native OpenCode

Browse files
Files changed (4) hide show
  1. README.md +3 -3
  2. deploy.py +1 -1
  3. install.sh +1 -1
  4. smoldataenv_opencode/ui.py +1 -1
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: SmolDataEnv Native OpenCode
3
  emoji: 馃И
4
  colorFrom: blue
5
  colorTo: green
@@ -13,7 +13,7 @@ Native OpenCode runs inside the sandbox. The server grades its answer and return
13
 
14
  This directory is the complete Space source. Copy it on its own, build it locally or upload it to a Docker Space. It has no imports from the other tutorial environments.
15
 
16
- [Open the deployed UI](https://fineenvs-data-agent-blackbox-opencode-env.hf.space/web/) 路 [Space](https://huggingface.co/spaces/FineEnvs/data-agent-blackbox-opencode-env)
17
 
18
  ## Read the code
19
 
@@ -43,7 +43,7 @@ For agent rollouts, set `SANDBOX_VLLM_URL` and the secret `SANDBOX_VLLM_KEY` to
43
  ## Deploy this folder
44
 
45
  ```bash
46
- python deploy.py --repo YOUR_ORG/data-agent-blackbox-opencode-env --public
47
  ```
48
 
49
  Add `HF_TOKEN` and `DAYTONA_API_KEY` as Space secrets. The uploader sends the files in this directory, without generating or swapping application code. It enables the UI and preserves an existing concurrency limit. For a new Space the limit defaults to 40; use `--concurrency` to change it. CPU Basic serves the API; actual tasks run in Daytona.
 
1
  ---
2
+ title: SmolDataEnv Multi-harness | Native OpenCode
3
  emoji: 馃И
4
  colorFrom: blue
5
  colorTo: green
 
13
 
14
  This directory is the complete Space source. Copy it on its own, build it locally or upload it to a Docker Space. It has no imports from the other tutorial environments.
15
 
16
+ [Open the deployed UI](https://fineenvs-smoldataenv-multi-harness-opencode.hf.space/web/) 路 [Space](https://huggingface.co/spaces/FineEnvs/smoldataenv-multi-harness-opencode)
17
 
18
  ## Read the code
19
 
 
43
  ## Deploy this folder
44
 
45
  ```bash
46
+ python deploy.py --repo YOUR_ORG/smoldataenv-multi-harness-opencode --public
47
  ```
48
 
49
  Add `HF_TOKEN` and `DAYTONA_API_KEY` as Space secrets. The uploader sends the files in this directory, without generating or swapping application code. It enables the UI and preserves an existing concurrency limit. For a new Space the limit defaults to 40; use `--concurrency` to change it. CPU Basic serves the API; actual tasks run in Daytona.
deploy.py CHANGED
@@ -59,7 +59,7 @@ def main():
59
  ".env",
60
  ".git/**",
61
  ],
62
- commit_message="Deploy standalone SmolDataEnv Native OpenCode",
63
  )
64
  print(f"https://huggingface.co/spaces/{args.repo}")
65
 
 
59
  ".env",
60
  ".git/**",
61
  ],
62
+ commit_message="Deploy SmolDataEnv Multi-harness | Native OpenCode",
63
  )
64
  print(f"https://huggingface.co/spaces/{args.repo}")
65
 
install.sh CHANGED
@@ -3,7 +3,7 @@ set -euo pipefail
3
  cd "$(dirname "$0")"
4
  mkdir -p .deps
5
  if [[ ! -d .deps/OpenEnv/.git ]]; then
6
- git clone --depth 1 https://github.com/huggingface/OpenEnv.git .deps/OpenEnv
7
  else
8
  git -C .deps/OpenEnv pull --ff-only origin main
9
  fi
 
3
  cd "$(dirname "$0")"
4
  mkdir -p .deps
5
  if [[ ! -d .deps/OpenEnv/.git ]]; then
6
+ git clone --depth 1 --branch main https://github.com/huggingface/OpenEnv.git .deps/OpenEnv
7
  else
8
  git -C .deps/OpenEnv pull --ff-only origin main
9
  fi
smoldataenv_opencode/ui.py CHANGED
@@ -17,7 +17,7 @@ From Python:
17
  import requests
18
  from openenv.core.mcp_client import MCPToolClient
19
 
20
- url = "https://fineenvs-data-agent-blackbox-opencode-env.hf.space"
21
  task = requests.post(url + "/smoldataenv_opencode/task",
22
  json={"split": "test", "index": 0}).json()["task"]
23
  with MCPToolClient(url, message_timeout_s=1800).sync() as env:
 
17
  import requests
18
  from openenv.core.mcp_client import MCPToolClient
19
 
20
+ url = "https://fineenvs-smoldataenv-multi-harness-opencode.hf.space"
21
  task = requests.post(url + "/smoldataenv_opencode/task",
22
  json={"split": "test", "index": 0}).json()["task"]
23
  with MCPToolClient(url, message_timeout_s=1800).sync() as env: