Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- Dockerfile +13 -4
- 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
|
| 13 |
-
COPY
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
-
[](
|
| 17 |
-
[](
|
| 18 |
-
[](
|
| 19 |
-
[](
|
| 20 |
|
| 21 |
---
|
| 22 |
|
|
@@ -228,8 +228,8 @@ swebench-in/
|
|
| 228 |
### Run the environment locally
|
| 229 |
|
| 230 |
```bash
|
| 231 |
-
git clone https://huggingface.co/spaces/
|
| 232 |
-
cd swebench-
|
| 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("
|
| 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 |
|
| 301 |
-
| Training Notebook (Colab) |
|
| 302 |
-
| HF Blog Post |
|
| 303 |
-
| Weights & Biases Run |
|
| 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 |
+
[](https://huggingface.co/spaces/YUS200619/swebench-ind)
|
| 17 |
+
[](https://colab.research.google.com/)
|
| 18 |
+
[](https://huggingface.co/blog)
|
| 19 |
+
[](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 |
|