YUS200619 commited on
Commit
9497e48
·
verified ·
1 Parent(s): fdce872

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. Dockerfile +13 -4
  2. README.md +11 -11
Dockerfile CHANGED
@@ -7,11 +7,20 @@ RUN useradd -m -s /bin/bash user2
7
  # This means zero outbound PyPI calls at runtime.
8
  RUN pip install flask pytest pylint requests
9
 
 
 
 
10
  WORKDIR /home/user2
11
 
12
- # Copy task templates
13
- COPY tasks/ /home/user2/tasks/
 
 
 
 
 
14
 
15
- EXPOSE 7860 8080
16
  ENV ENABLE_WEB_INTERFACE=true
17
- CMD ["python", "app.py"]
 
 
7
  # This means zero outbound PyPI calls at runtime.
8
  RUN pip install flask pytest pylint requests
9
 
10
+ # Install OpenEnv core and server dependencies
11
+ RUN pip install openenv-core[core]>=0.2.2 gradio uvicorn fastapi
12
+
13
  WORKDIR /home/user2
14
 
15
+ # Copy all project files
16
+ COPY *.py /home/user2/
17
+ COPY models.py /home/user2/
18
+ COPY server/ /home/user2/server/
19
+ COPY openenv.yaml /home/user2/
20
+ COPY requirements.txt /home/user2/
21
+ COPY README.md /home/user2/
22
 
23
+ EXPOSE 7860 8000 8080
24
  ENV ENABLE_WEB_INTERFACE=true
25
+ CMD ["python", "server/app.py"]
26
+
README.md CHANGED
@@ -13,10 +13,10 @@ base_path: /web
13
 
14
  > **The agent that learns to fix the server first, reply to the manager second, and protect its Thursday leave — that is the agent that learned something no existing benchmark tests.**
15
 
16
- [![HuggingFace Space](https://img.shields.io/badge/🤗%20Space-SWEbench--IN-blue)](YOUR_SPACE_URL_HERE)
17
- [![Colab](https://img.shields.io/badge/Colab-Training%20Notebook-orange)](YOUR_COLAB_URL_HERE)
18
- [![Blog](https://img.shields.io/badge/HF%20Blog-Post-green)](YOUR_BLOG_URL_HERE)
19
- [![WandB](https://img.shields.io/badge/Weights%20%26%20Biases-Run-yellow)](YOUR_WANDB_URL_HERE)
20
 
21
  ---
22
 
@@ -228,8 +228,8 @@ swebench-in/
228
  ### Run the environment locally
229
 
230
  ```bash
231
- git clone https://huggingface.co/spaces/YOUR_USERNAME/swebench-in
232
- cd swebench-in
233
  docker build -t swebench-in .
234
  docker run -p 7860:7860 -p 8080:8080 swebench-in
235
  ```
@@ -243,7 +243,7 @@ Open `notebooks/training.ipynb` in Google Colab. Update `HF_SPACE_URL` in Cell 2
243
  ```python
244
  from openenv.client import Environment
245
 
246
- env = Environment("YOUR_SPACE_URL")
247
  obs = env.reset(task_id=3)
248
  print(obs)
249
 
@@ -297,10 +297,10 @@ Calling `pip install` against PyPI at runtime in a restricted container creates
297
 
298
  | Resource | URL |
299
  |---|---|
300
- | HuggingFace Space | YOUR_SPACE_URL |
301
- | Training Notebook (Colab) | YOUR_COLAB_URL |
302
- | HF Blog Post | YOUR_BLOG_URL |
303
- | Weights & Biases Run | YOUR_WANDB_URL |
304
 
305
  ---
306
 
 
13
 
14
  > **The agent that learns to fix the server first, reply to the manager second, and protect its Thursday leave — that is the agent that learned something no existing benchmark tests.**
15
 
16
+ [![HuggingFace Space](https://img.shields.io/badge/🤗%20Space-SWEbench--IN-blue)](https://huggingface.co/spaces/YUS200619/swebench-ind)
17
+ [![Colab](https://img.shields.io/badge/Colab-Training%20Notebook-orange)](https://colab.research.google.com/)
18
+ [![Blog](https://img.shields.io/badge/HF%20Blog-Post-green)](https://huggingface.co/blog)
19
+ [![WandB](https://img.shields.io/badge/Weights%20%26%20Biases-Run-yellow)](https://wandb.ai/)
20
 
21
  ---
22
 
 
228
  ### Run the environment locally
229
 
230
  ```bash
231
+ git clone https://huggingface.co/spaces/YUS200619/swebench-ind
232
+ cd swebench-ind
233
  docker build -t swebench-in .
234
  docker run -p 7860:7860 -p 8080:8080 swebench-in
235
  ```
 
243
  ```python
244
  from openenv.client import Environment
245
 
246
+ env = Environment("https://huggingface.co/spaces/YUS200619/swebench-ind")
247
  obs = env.reset(task_id=3)
248
  print(obs)
249
 
 
297
 
298
  | Resource | URL |
299
  |---|---|
300
+ | HuggingFace Space | https://huggingface.co/spaces/YUS200619/swebench-ind |
301
+ | Training Notebook (Colab) | _Coming soon_ |
302
+ | HF Blog Post | _Coming soon_ |
303
+ | Weights & Biases Run | _Coming soon_ |
304
 
305
  ---
306