Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files- pyproject.toml +6 -0
- server/app.py +7 -1
- uv.lock +0 -0
pyproject.toml
CHANGED
|
@@ -11,6 +11,8 @@ dependencies = [
|
|
| 11 |
"openenv-core>=0.1.0",
|
| 12 |
"fastapi>=0.104.0",
|
| 13 |
"uvicorn>=0.24.0",
|
|
|
|
|
|
|
| 14 |
"browsergym-core>=0.2.0",
|
| 15 |
"browsergym-miniwob>=0.2.0",
|
| 16 |
"browsergym-webarena>=0.2.0",
|
|
@@ -23,8 +25,12 @@ dependencies = [
|
|
| 23 |
dev = [
|
| 24 |
"pytest>=8.0.0",
|
| 25 |
"pytest-cov>=4.0.0",
|
|
|
|
| 26 |
]
|
| 27 |
|
|
|
|
|
|
|
|
|
|
| 28 |
[tool.setuptools]
|
| 29 |
packages = ["browsergym_env", "browsergym_env.server"]
|
| 30 |
package-dir = { "browsergym_env" = ".", "browsergym_env.server" = "server" }
|
|
|
|
| 11 |
"openenv-core>=0.1.0",
|
| 12 |
"fastapi>=0.104.0",
|
| 13 |
"uvicorn>=0.24.0",
|
| 14 |
+
"pydantic>=2.0.0",
|
| 15 |
+
"requests>=2.25.0",
|
| 16 |
"browsergym-core>=0.2.0",
|
| 17 |
"browsergym-miniwob>=0.2.0",
|
| 18 |
"browsergym-webarena>=0.2.0",
|
|
|
|
| 25 |
dev = [
|
| 26 |
"pytest>=8.0.0",
|
| 27 |
"pytest-cov>=4.0.0",
|
| 28 |
+
"ipykernel>=6.29.5",
|
| 29 |
]
|
| 30 |
|
| 31 |
+
[project.scripts]
|
| 32 |
+
server = "browsergym_env.server.app:main"
|
| 33 |
+
|
| 34 |
[tool.setuptools]
|
| 35 |
packages = ["browsergym_env", "browsergym_env.server"]
|
| 36 |
package-dir = { "browsergym_env" = ".", "browsergym_env.server" = "server" }
|
server/app.py
CHANGED
|
@@ -36,7 +36,13 @@ app = create_app(
|
|
| 36 |
env_name="browsergym_env",
|
| 37 |
)
|
| 38 |
|
| 39 |
-
|
|
|
|
|
|
|
| 40 |
import uvicorn
|
| 41 |
|
| 42 |
uvicorn.run(app, host="0.0.0.0", port=port)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
env_name="browsergym_env",
|
| 37 |
)
|
| 38 |
|
| 39 |
+
|
| 40 |
+
def main():
|
| 41 |
+
"""Main entry point for running the server."""
|
| 42 |
import uvicorn
|
| 43 |
|
| 44 |
uvicorn.run(app, host="0.0.0.0", port=port)
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
if __name__ == "__main__":
|
| 48 |
+
main()
|
uv.lock
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|