burtenshaw HF Staff commited on
Commit
76d1632
·
verified ·
1 Parent(s): 3dfdd39

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. server/app.py +2 -5
  2. server/benchmark_environment.py +2 -5
server/app.py CHANGED
@@ -35,11 +35,8 @@ except Exception as e: # pragma: no cover
35
  "openenv is required for the web interface. Install dependencies with '\n uv sync\n'"
36
  ) from e
37
 
38
- # Support both installed package and direct Docker execution
39
- try:
40
- from benchmark.models import BenchmarkAction, BenchmarkObservation
41
- except ImportError:
42
- from models import BenchmarkAction, BenchmarkObservation
43
 
44
  from .benchmark_environment import BenchmarkEnvironment
45
 
 
35
  "openenv is required for the web interface. Install dependencies with '\n uv sync\n'"
36
  ) from e
37
 
38
+ # Import from local models.py (PYTHONPATH includes /app/env in Docker)
39
+ from models import BenchmarkAction, BenchmarkObservation
 
 
 
40
 
41
  from .benchmark_environment import BenchmarkEnvironment
42
 
server/benchmark_environment.py CHANGED
@@ -21,11 +21,8 @@ from uuid import uuid4
21
  from openenv.core.env_server.interfaces import Environment
22
  from openenv.core.env_server.types import State
23
 
24
- # Support both installed package and direct Docker execution
25
- try:
26
- from benchmark.models import BenchmarkAction, BenchmarkObservation
27
- except ImportError:
28
- from models import BenchmarkAction, BenchmarkObservation
29
 
30
 
31
  def _get_host_url() -> str:
 
21
  from openenv.core.env_server.interfaces import Environment
22
  from openenv.core.env_server.types import State
23
 
24
+ # Import from local models.py (PYTHONPATH includes /app/env in Docker)
25
+ from models import BenchmarkAction, BenchmarkObservation
 
 
 
26
 
27
 
28
  def _get_host_url() -> str: