Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- server/app.py +2 -5
- 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 |
-
#
|
| 39 |
-
|
| 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 |
-
#
|
| 25 |
-
|
| 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:
|