Spaces:
Sleeping
Sleeping
Nikhil Pujari commited on
Commit ·
fb11615
1
Parent(s): 1f5fac6
fix: disable Docker HEALTHCHECK and clean up junk files
Browse filesHEALTHCHECK was conflicting with HF Spaces health detection, causing
the space to be stuck in RUNNING_APP_STARTING. Also remove .egg-info
and test files that were accidentally pushed.
- Dockerfile +2 -4
- skill_invocation_env.egg-info/PKG-INFO +0 -10
- skill_invocation_env.egg-info/SOURCES.txt +0 -18
- skill_invocation_env.egg-info/dependency_links.txt +0 -1
- skill_invocation_env.egg-info/entry_points.txt +0 -2
- skill_invocation_env.egg-info/requires.txt +0 -6
- skill_invocation_env.egg-info/top_level.txt +0 -1
- test_schema.py +0 -8
- test_schema2.py +0 -11
Dockerfile
CHANGED
|
@@ -71,11 +71,9 @@ ENV PATH="/app/.venv/bin:$PATH"
|
|
| 71 |
# Set PYTHONPATH so imports work correctly
|
| 72 |
ENV PYTHONPATH="/app/env:$PYTHONPATH"
|
| 73 |
|
| 74 |
-
#
|
| 75 |
-
HEALTHCHECK
|
| 76 |
-
CMD curl -f http://localhost:8000/health || exit 1
|
| 77 |
|
| 78 |
# Run the FastAPI server
|
| 79 |
-
# The module path is constructed to work with the /app/env structure
|
| 80 |
ENV ENABLE_WEB_INTERFACE=true
|
| 81 |
CMD ["sh", "-c", "cd /app/env && uvicorn server.app:app --host 0.0.0.0 --port 8000"]
|
|
|
|
| 71 |
# Set PYTHONPATH so imports work correctly
|
| 72 |
ENV PYTHONPATH="/app/env:$PYTHONPATH"
|
| 73 |
|
| 74 |
+
# HF Spaces handles health checking; no Docker HEALTHCHECK needed.
|
| 75 |
+
HEALTHCHECK NONE
|
|
|
|
| 76 |
|
| 77 |
# Run the FastAPI server
|
|
|
|
| 78 |
ENV ENABLE_WEB_INTERFACE=true
|
| 79 |
CMD ["sh", "-c", "cd /app/env && uvicorn server.app:app --host 0.0.0.0 --port 8000"]
|
skill_invocation_env.egg-info/PKG-INFO
DELETED
|
@@ -1,10 +0,0 @@
|
|
| 1 |
-
Metadata-Version: 2.4
|
| 2 |
-
Name: skill_invocation_env
|
| 3 |
-
Version: 0.1.0
|
| 4 |
-
Summary: OpenEnv RL environment for training LLMs to invoke procedural knowledge (skills) during task-solving
|
| 5 |
-
Requires-Python: >=3.10
|
| 6 |
-
Requires-Dist: openenv-core[core]>=0.2.1
|
| 7 |
-
Requires-Dist: pydantic>=2.0
|
| 8 |
-
Provides-Extra: dev
|
| 9 |
-
Requires-Dist: pytest>=8.0.0; extra == "dev"
|
| 10 |
-
Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
skill_invocation_env.egg-info/SOURCES.txt
DELETED
|
@@ -1,18 +0,0 @@
|
|
| 1 |
-
README.md
|
| 2 |
-
pyproject.toml
|
| 3 |
-
./__init__.py
|
| 4 |
-
./client.py
|
| 5 |
-
./models.py
|
| 6 |
-
./task_bank.py
|
| 7 |
-
./task_generator.py
|
| 8 |
-
./test_env.py
|
| 9 |
-
./train_demo.py
|
| 10 |
-
server/__init__.py
|
| 11 |
-
server/app.py
|
| 12 |
-
server/skill_invocation_env_environment.py
|
| 13 |
-
skill_invocation_env.egg-info/PKG-INFO
|
| 14 |
-
skill_invocation_env.egg-info/SOURCES.txt
|
| 15 |
-
skill_invocation_env.egg-info/dependency_links.txt
|
| 16 |
-
skill_invocation_env.egg-info/entry_points.txt
|
| 17 |
-
skill_invocation_env.egg-info/requires.txt
|
| 18 |
-
skill_invocation_env.egg-info/top_level.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
skill_invocation_env.egg-info/dependency_links.txt
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
|
|
|
|
|
|
skill_invocation_env.egg-info/entry_points.txt
DELETED
|
@@ -1,2 +0,0 @@
|
|
| 1 |
-
[console_scripts]
|
| 2 |
-
server = skill_invocation_env.server.app:main
|
|
|
|
|
|
|
|
|
skill_invocation_env.egg-info/requires.txt
DELETED
|
@@ -1,6 +0,0 @@
|
|
| 1 |
-
openenv-core[core]>=0.2.1
|
| 2 |
-
pydantic>=2.0
|
| 3 |
-
|
| 4 |
-
[dev]
|
| 5 |
-
pytest>=8.0.0
|
| 6 |
-
pytest-cov>=4.0.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
skill_invocation_env.egg-info/top_level.txt
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
skill_invocation_env
|
|
|
|
|
|
test_schema.py
DELETED
|
@@ -1,8 +0,0 @@
|
|
| 1 |
-
from pydantic import BaseModel, Field
|
| 2 |
-
from typing import Optional
|
| 3 |
-
import json
|
| 4 |
-
|
| 5 |
-
class A(BaseModel):
|
| 6 |
-
answer: Optional[str] = Field(None, json_schema_extra={"type": "string", "maxLength": 100000})
|
| 7 |
-
|
| 8 |
-
print(json.dumps(A.model_json_schema(), indent=2))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
test_schema2.py
DELETED
|
@@ -1,11 +0,0 @@
|
|
| 1 |
-
from pydantic import BaseModel, Field
|
| 2 |
-
from typing import Optional
|
| 3 |
-
import json
|
| 4 |
-
|
| 5 |
-
class A(BaseModel):
|
| 6 |
-
answer: Optional[str] = Field(
|
| 7 |
-
default=None,
|
| 8 |
-
json_schema_extra={"type": "string", "maxLength": 100000}
|
| 9 |
-
)
|
| 10 |
-
|
| 11 |
-
print(json.dumps(A.model_json_schema(), indent=2))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|