Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- pyproject.toml +1 -1
- server/app.py +13 -3
- uv.lock +3 -7
pyproject.toml
CHANGED
|
@@ -15,7 +15,7 @@ description = "Recursive Language Model REPL Environment for OpenEnv"
|
|
| 15 |
requires-python = ">=3.10"
|
| 16 |
dependencies = [
|
| 17 |
# Core OpenEnv dependencies (required for server functionality)
|
| 18 |
-
"openenv-core[core]
|
| 19 |
"fastapi>=0.115.0",
|
| 20 |
"pydantic>=2.0.0",
|
| 21 |
"uvicorn>=0.24.0",
|
|
|
|
| 15 |
requires-python = ">=3.10"
|
| 16 |
dependencies = [
|
| 17 |
# Core OpenEnv dependencies (required for server functionality)
|
| 18 |
+
"openenv-core[core] @ git+https://github.com/sergiopaniego/OpenEnv@feature/fix-core-tabs-order",
|
| 19 |
"fastapi>=0.115.0",
|
| 20 |
"pydantic>=2.0.0",
|
| 21 |
"uvicorn>=0.24.0",
|
server/app.py
CHANGED
|
@@ -96,13 +96,23 @@ def create_repl_environment() -> REPLEnvironment:
|
|
| 96 |
# Create the app with web interface and README integration.
|
| 97 |
_sig = inspect.signature(create_app)
|
| 98 |
if "gradio_builder" in _sig.parameters:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 99 |
app = create_app(
|
| 100 |
create_repl_environment,
|
| 101 |
REPLAction,
|
| 102 |
REPLObservation,
|
| 103 |
-
|
| 104 |
-
max_concurrent_envs=MAX_CONCURRENT_ENVS,
|
| 105 |
-
gradio_builder=build_repl_gradio_app,
|
| 106 |
)
|
| 107 |
else:
|
| 108 |
_logger.warning(
|
|
|
|
| 96 |
# Create the app with web interface and README integration.
|
| 97 |
_sig = inspect.signature(create_app)
|
| 98 |
if "gradio_builder" in _sig.parameters:
|
| 99 |
+
# Opt in to the primary-tab behaviour when supported so visitors land on
|
| 100 |
+
# the custom REPL UI instead of the auto-generated schema Playground.
|
| 101 |
+
# Older openenv-core versions silently ignore the extra kwargs.
|
| 102 |
+
create_app_kwargs: dict = {
|
| 103 |
+
"env_name": "repl_env",
|
| 104 |
+
"max_concurrent_envs": MAX_CONCURRENT_ENVS,
|
| 105 |
+
"gradio_builder": build_repl_gradio_app,
|
| 106 |
+
}
|
| 107 |
+
if "custom_tab_name" in _sig.parameters:
|
| 108 |
+
create_app_kwargs["custom_tab_name"] = "REPL"
|
| 109 |
+
if "custom_tab_primary" in _sig.parameters:
|
| 110 |
+
create_app_kwargs["custom_tab_primary"] = True
|
| 111 |
app = create_app(
|
| 112 |
create_repl_environment,
|
| 113 |
REPLAction,
|
| 114 |
REPLObservation,
|
| 115 |
+
**create_app_kwargs,
|
|
|
|
|
|
|
| 116 |
)
|
| 117 |
else:
|
| 118 |
_logger.warning(
|
uv.lock
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
version = 1
|
| 2 |
-
revision =
|
| 3 |
requires-python = ">=3.10"
|
| 4 |
resolution-markers = [
|
| 5 |
"python_full_version >= '3.14' and sys_platform == 'win32'",
|
|
@@ -1566,7 +1566,7 @@ wheels = [
|
|
| 1566 |
[[package]]
|
| 1567 |
name = "openenv-core"
|
| 1568 |
version = "0.2.3"
|
| 1569 |
-
source = {
|
| 1570 |
dependencies = [
|
| 1571 |
{ name = "fastapi" },
|
| 1572 |
{ name = "fastmcp" },
|
|
@@ -1584,10 +1584,6 @@ dependencies = [
|
|
| 1584 |
{ name = "uvicorn" },
|
| 1585 |
{ name = "websockets" },
|
| 1586 |
]
|
| 1587 |
-
sdist = { url = "https://files.pythonhosted.org/packages/93/f3/41a5ed932a2507438c985e9d959dcaa1a6c46f293995c064348c0e52dd40/openenv_core-0.2.3.tar.gz", hash = "sha256:48aefd774474556297ce012b80f2ceb271db51253d7fd0838e6e2dcc329db0c3", size = 146944, upload-time = "2026-03-28T18:56:28.415Z" }
|
| 1588 |
-
wheels = [
|
| 1589 |
-
{ url = "https://files.pythonhosted.org/packages/2f/22/38c339e370d198008f2c17ebdda1ae8f23bb4e1509dc7ae8eab6dc9b9cbe/openenv_core-0.2.3-py3-none-any.whl", hash = "sha256:f75a20c94452057a5f53a86e6d71a9f6a461524c3d6a865aa9344d257a92b795", size = 174557, upload-time = "2026-03-28T18:56:26.874Z" },
|
| 1590 |
-
]
|
| 1591 |
|
| 1592 |
[package.optional-dependencies]
|
| 1593 |
core = [
|
|
@@ -1625,7 +1621,7 @@ requires-dist = [
|
|
| 1625 |
{ name = "fastapi", specifier = ">=0.115.0" },
|
| 1626 |
{ name = "gradio", specifier = ">=4.0.0" },
|
| 1627 |
{ name = "huggingface-hub", specifier = ">=0.20.0" },
|
| 1628 |
-
{ name = "openenv-core", extras = ["core"],
|
| 1629 |
{ name = "pydantic", specifier = ">=2.0.0" },
|
| 1630 |
{ name = "pypdf", specifier = ">=4.0.0" },
|
| 1631 |
{ name = "pytest", marker = "extra == 'dev'", specifier = ">=9.0.3" },
|
|
|
|
| 1 |
version = 1
|
| 2 |
+
revision = 2
|
| 3 |
requires-python = ">=3.10"
|
| 4 |
resolution-markers = [
|
| 5 |
"python_full_version >= '3.14' and sys_platform == 'win32'",
|
|
|
|
| 1566 |
[[package]]
|
| 1567 |
name = "openenv-core"
|
| 1568 |
version = "0.2.3"
|
| 1569 |
+
source = { git = "https://github.com/sergiopaniego/OpenEnv?rev=feature%2Ffix-core-tabs-order#bc0c1d7c35b05672846b2702eadf9f8a5af58c9b" }
|
| 1570 |
dependencies = [
|
| 1571 |
{ name = "fastapi" },
|
| 1572 |
{ name = "fastmcp" },
|
|
|
|
| 1584 |
{ name = "uvicorn" },
|
| 1585 |
{ name = "websockets" },
|
| 1586 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1587 |
|
| 1588 |
[package.optional-dependencies]
|
| 1589 |
core = [
|
|
|
|
| 1621 |
{ name = "fastapi", specifier = ">=0.115.0" },
|
| 1622 |
{ name = "gradio", specifier = ">=4.0.0" },
|
| 1623 |
{ name = "huggingface-hub", specifier = ">=0.20.0" },
|
| 1624 |
+
{ name = "openenv-core", extras = ["core"], git = "https://github.com/sergiopaniego/OpenEnv?rev=feature%2Ffix-core-tabs-order" },
|
| 1625 |
{ name = "pydantic", specifier = ">=2.0.0" },
|
| 1626 |
{ name = "pypdf", specifier = ">=4.0.0" },
|
| 1627 |
{ name = "pytest", marker = "extra == 'dev'", specifier = ">=9.0.3" },
|