Spaces:
Sleeping
Sleeping
Ayush Rawat commited on
Commit ·
bdb9b94
1
Parent(s): 5367126
fix
Browse files- Dockerfile +2 -2
- README copy.md +1 -1
- pyproject.toml +4 -0
- requirements.txt +6 -9
- server/requirements.txt +6 -9
- uv.lock +8 -0
Dockerfile
CHANGED
|
@@ -75,6 +75,6 @@ ENV PYTHONPATH="/app/env:$PYTHONPATH"
|
|
| 75 |
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
| 76 |
CMD curl -f http://localhost:8000/health || exit 1
|
| 77 |
|
| 78 |
-
# Run the FastAPI server
|
| 79 |
# The module path is constructed to work with the /app/env structure
|
| 80 |
-
CMD ["sh", "-c", "cd /app/env &&
|
|
|
|
| 75 |
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
| 76 |
CMD curl -f http://localhost:8000/health || exit 1
|
| 77 |
|
| 78 |
+
# Run the FastAPI server and Gradio UI
|
| 79 |
# The module path is constructed to work with the /app/env structure
|
| 80 |
+
CMD ["sh", "-c", "cd /app/env && python app.py"]
|
README copy.md
CHANGED
|
@@ -8,7 +8,7 @@ colorFrom: green
|
|
| 8 |
colorTo: indigo
|
| 9 |
sdk: docker
|
| 10 |
pinned: false
|
| 11 |
-
app_port:
|
| 12 |
base_path: /web
|
| 13 |
tags:
|
| 14 |
- openenv
|
|
|
|
| 8 |
colorTo: indigo
|
| 9 |
sdk: docker
|
| 10 |
pinned: false
|
| 11 |
+
app_port: 7860
|
| 12 |
base_path: /web
|
| 13 |
tags:
|
| 14 |
- openenv
|
pyproject.toml
CHANGED
|
@@ -18,6 +18,10 @@ dependencies = [
|
|
| 18 |
# install from github
|
| 19 |
# "openenv-core[core] @ git+https://github.com/meta-pytorch/OpenEnv.git",
|
| 20 |
"openenv-core[core]>=0.2.2",
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
# Environment-specific dependencies
|
| 22 |
# Add all dependencies needed for your environment here
|
| 23 |
# Examples:
|
|
|
|
| 18 |
# install from github
|
| 19 |
# "openenv-core[core] @ git+https://github.com/meta-pytorch/OpenEnv.git",
|
| 20 |
"openenv-core[core]>=0.2.2",
|
| 21 |
+
"gradio>=4.0.0",
|
| 22 |
+
"openai>=1.0.0",
|
| 23 |
+
"httpx>=0.25.0",
|
| 24 |
+
"python-dotenv>=1.0.0",
|
| 25 |
# Environment-specific dependencies
|
| 26 |
# Add all dependencies needed for your environment here
|
| 27 |
# Examples:
|
requirements.txt
CHANGED
|
@@ -1,10 +1,7 @@
|
|
| 1 |
-
|
| 2 |
-
fastapi
|
| 3 |
-
uvicorn
|
| 4 |
-
httpx
|
| 5 |
-
openai>=1.0.0
|
| 6 |
-
python-dotenv
|
| 7 |
-
pydantic
|
| 8 |
-
openenv[core]>=0.1.13
|
| 9 |
fastapi>=0.115.0
|
| 10 |
-
uvicorn>=0.24.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
openenv-core[core]>=0.2.2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
fastapi>=0.115.0
|
| 3 |
+
uvicorn>=0.24.0
|
| 4 |
+
gradio>=4.0.0
|
| 5 |
+
openai>=1.0.0
|
| 6 |
+
httpx>=0.25.0
|
| 7 |
+
python-dotenv>=1.0.0
|
server/requirements.txt
CHANGED
|
@@ -1,10 +1,7 @@
|
|
| 1 |
-
|
| 2 |
-
fastapi
|
| 3 |
-
uvicorn
|
| 4 |
-
httpx
|
| 5 |
-
openai>=1.0.0
|
| 6 |
-
python-dotenv
|
| 7 |
-
pydantic
|
| 8 |
-
openenv[core]>=0.2.0
|
| 9 |
fastapi>=0.115.0
|
| 10 |
-
uvicorn>=0.24.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
openenv-core[core]>=0.2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
fastapi>=0.115.0
|
| 3 |
+
uvicorn>=0.24.0
|
| 4 |
+
gradio>=4.0.0
|
| 5 |
+
openai>=1.0.0
|
| 6 |
+
httpx>=0.25.0
|
| 7 |
+
python-dotenv>=1.0.0
|
uv.lock
CHANGED
|
@@ -1603,7 +1603,11 @@ name = "openenv-wildfireenvironment"
|
|
| 1603 |
version = "0.1.0"
|
| 1604 |
source = { editable = "." }
|
| 1605 |
dependencies = [
|
|
|
|
|
|
|
|
|
|
| 1606 |
{ name = "openenv-core", extra = ["core"] },
|
|
|
|
| 1607 |
]
|
| 1608 |
|
| 1609 |
[package.optional-dependencies]
|
|
@@ -1614,9 +1618,13 @@ dev = [
|
|
| 1614 |
|
| 1615 |
[package.metadata]
|
| 1616 |
requires-dist = [
|
|
|
|
|
|
|
|
|
|
| 1617 |
{ name = "openenv-core", extras = ["core"], specifier = ">=0.2.2" },
|
| 1618 |
{ name = "pytest", marker = "extra == 'dev'", specifier = ">=8.0.0" },
|
| 1619 |
{ name = "pytest-cov", marker = "extra == 'dev'", specifier = ">=4.0.0" },
|
|
|
|
| 1620 |
]
|
| 1621 |
provides-extras = ["dev"]
|
| 1622 |
|
|
|
|
| 1603 |
version = "0.1.0"
|
| 1604 |
source = { editable = "." }
|
| 1605 |
dependencies = [
|
| 1606 |
+
{ name = "gradio" },
|
| 1607 |
+
{ name = "httpx" },
|
| 1608 |
+
{ name = "openai" },
|
| 1609 |
{ name = "openenv-core", extra = ["core"] },
|
| 1610 |
+
{ name = "python-dotenv" },
|
| 1611 |
]
|
| 1612 |
|
| 1613 |
[package.optional-dependencies]
|
|
|
|
| 1618 |
|
| 1619 |
[package.metadata]
|
| 1620 |
requires-dist = [
|
| 1621 |
+
{ name = "gradio", specifier = ">=4.0.0" },
|
| 1622 |
+
{ name = "httpx", specifier = ">=0.25.0" },
|
| 1623 |
+
{ name = "openai", specifier = ">=1.0.0" },
|
| 1624 |
{ name = "openenv-core", extras = ["core"], specifier = ">=0.2.2" },
|
| 1625 |
{ name = "pytest", marker = "extra == 'dev'", specifier = ">=8.0.0" },
|
| 1626 |
{ name = "pytest-cov", marker = "extra == 'dev'", specifier = ">=4.0.0" },
|
| 1627 |
+
{ name = "python-dotenv", specifier = ">=1.0.0" },
|
| 1628 |
]
|
| 1629 |
provides-extras = ["dev"]
|
| 1630 |
|