kgdrathan commited on
Commit
c5b0dcd
·
verified ·
1 Parent(s): 9a3b69b

Upload folder using huggingface_hub

Browse files
Dockerfile CHANGED
@@ -15,10 +15,13 @@ FROM ${BASE_IMAGE} AS builder
15
 
16
  WORKDIR /app
17
 
18
- # Ensure git is available (required for installing dependencies from VCS)
19
  RUN apt-get update && \
20
- apt-get install -y --no-install-recommends git && \
21
- rm -rf /var/lib/apt/lists/*
 
 
 
22
 
23
  # Build argument to control whether we're building standalone or in-repo
24
  ARG BUILD_MODE=in-repo
@@ -59,6 +62,13 @@ FROM ${BASE_IMAGE}
59
 
60
  WORKDIR /app
61
 
 
 
 
 
 
 
 
62
  # Copy the virtual environment from builder
63
  COPY --from=builder /app/env/.venv /app/.venv
64
 
 
15
 
16
  WORKDIR /app
17
 
18
+ # System deps: git + build tools for pycairo/manim + cairo/pango libs + ffmpeg
19
  RUN apt-get update && \
20
+ apt-get install -y --no-install-recommends \
21
+ git gcc g++ pkg-config \
22
+ libcairo2-dev libpango1.0-dev libgirepository1.0-dev \
23
+ ffmpeg texlive-latex-base texlive-fonts-recommended \
24
+ && rm -rf /var/lib/apt/lists/*
25
 
26
  # Build argument to control whether we're building standalone or in-repo
27
  ARG BUILD_MODE=in-repo
 
62
 
63
  WORKDIR /app
64
 
65
+ # Runtime libs for manim (cairo, pango, ffmpeg)
66
+ RUN apt-get update && \
67
+ apt-get install -y --no-install-recommends \
68
+ libcairo2 libpango-1.0-0 libpangocairo-1.0-0 \
69
+ ffmpeg \
70
+ && rm -rf /var/lib/apt/lists/*
71
+
72
  # Copy the virtual environment from builder
73
  COPY --from=builder /app/env/.venv /app/.venv
74
 
openenv_explainer_env.egg-info/PKG-INFO CHANGED
@@ -1,7 +1,7 @@
1
  Metadata-Version: 2.4
2
  Name: openenv-explainer_env
3
  Version: 0.1.0
4
- Summary: Explainer Env environment for OpenEnv
5
  Requires-Python: >=3.10
6
  Requires-Dist: openenv-core[core]>=0.2.2
7
  Requires-Dist: marimo>=0.10.0
 
1
  Metadata-Version: 2.4
2
  Name: openenv-explainer_env
3
  Version: 0.1.0
4
+ Summary: Interactive Explainer OpenEnv
5
  Requires-Python: >=3.10
6
  Requires-Dist: openenv-core[core]>=0.2.2
7
  Requires-Dist: marimo>=0.10.0
openenv_explainer_env.egg-info/SOURCES.txt CHANGED
@@ -3,6 +3,7 @@ __init__.py
3
  client.py
4
  models.py
5
  pyproject.toml
 
6
  ./__init__.py
7
  ./client.py
8
  ./models.py
 
3
  client.py
4
  models.py
5
  pyproject.toml
6
+ task_bank.py
7
  ./__init__.py
8
  ./client.py
9
  ./models.py
pyproject.toml CHANGED
@@ -1,9 +1,3 @@
1
- # Copyright (c) Meta Platforms, Inc. and affiliates.
2
- # All rights reserved.
3
- #
4
- # This source code is licensed under the BSD-style license found in the
5
- # LICENSE file in the root directory of this source tree.
6
-
7
  [build-system]
8
  requires = ["setuptools>=45", "wheel"]
9
  build-backend = "setuptools.build_meta"
@@ -11,14 +5,10 @@ build-backend = "setuptools.build_meta"
11
  [project]
12
  name = "openenv-explainer_env"
13
  version = "0.1.0"
14
- description = "Explainer Env environment for OpenEnv"
15
  requires-python = ">=3.10"
16
  dependencies = [
17
- # Core OpenEnv runtime (provides FastAPI server + HTTP client types)
18
- # install from github
19
- # "openenv-core[core] @ git+https://github.com/meta-pytorch/OpenEnv.git",
20
  "openenv-core[core]>=0.2.2",
21
- # Environment-specific dependencies
22
  "marimo>=0.10.0",
23
  "manim>=0.18.0",
24
  ]
@@ -30,8 +20,6 @@ dev = [
30
  ]
31
 
32
  [project.scripts]
33
- # Server entry point - enables running via: uv run --project . server
34
- # or: python -m explainer_env.server.app
35
  server = "explainer_env.server.app:main"
36
 
37
  [tool.setuptools]
 
 
 
 
 
 
 
1
  [build-system]
2
  requires = ["setuptools>=45", "wheel"]
3
  build-backend = "setuptools.build_meta"
 
5
  [project]
6
  name = "openenv-explainer_env"
7
  version = "0.1.0"
8
+ description = "Interactive Explainer OpenEnv"
9
  requires-python = ">=3.10"
10
  dependencies = [
 
 
 
11
  "openenv-core[core]>=0.2.2",
 
12
  "marimo>=0.10.0",
13
  "manim>=0.18.0",
14
  ]
 
20
  ]
21
 
22
  [project.scripts]
 
 
23
  server = "explainer_env.server.app:main"
24
 
25
  [tool.setuptools]
server/app.py CHANGED
@@ -36,7 +36,7 @@ except Exception as e: # pragma: no cover
36
  try:
37
  from ..models import ExplainerAction, ExplainerObservation
38
  from .explainer_env_environment import ExplainerEnvironment
39
- except ModuleNotFoundError:
40
  from models import ExplainerAction, ExplainerObservation
41
  from server.explainer_env_environment import ExplainerEnvironment
42
 
 
36
  try:
37
  from ..models import ExplainerAction, ExplainerObservation
38
  from .explainer_env_environment import ExplainerEnvironment
39
+ except ImportError:
40
  from models import ExplainerAction, ExplainerObservation
41
  from server.explainer_env_environment import ExplainerEnvironment
42