Spaces:
Sleeping
Sleeping
Commit ·
58eaf0f
1
Parent(s): 7ce5739
fix: import create_app to enable built-in Gradio UI
Browse files- server/app.py +2 -2
server/app.py
CHANGED
|
@@ -11,7 +11,7 @@ from collections.abc import Callable
|
|
| 11 |
from pydantic import BaseModel, Field
|
| 12 |
|
| 13 |
try:
|
| 14 |
-
from openenv.core.env_server.http_server import
|
| 15 |
except Exception as e: # pragma: no cover
|
| 16 |
raise ImportError(
|
| 17 |
"openenv is required for the web interface. Install dependencies with '\n uv sync\n'"
|
|
@@ -33,7 +33,7 @@ def _env_factory() -> CodeReviewEnvironment:
|
|
| 33 |
return CodeReviewEnvironment()
|
| 34 |
|
| 35 |
|
| 36 |
-
app =
|
| 37 |
_env_factory,
|
| 38 |
ReviewAction,
|
| 39 |
ReviewObservation,
|
|
|
|
| 11 |
from pydantic import BaseModel, Field
|
| 12 |
|
| 13 |
try:
|
| 14 |
+
from openenv.core.env_server.http_server import create_app
|
| 15 |
except Exception as e: # pragma: no cover
|
| 16 |
raise ImportError(
|
| 17 |
"openenv is required for the web interface. Install dependencies with '\n uv sync\n'"
|
|
|
|
| 33 |
return CodeReviewEnvironment()
|
| 34 |
|
| 35 |
|
| 36 |
+
app = create_app(
|
| 37 |
_env_factory,
|
| 38 |
ReviewAction,
|
| 39 |
ReviewObservation,
|