Spaces:
Runtime error
Runtime error
prashasti commited on
Commit ·
91f811f
1
Parent(s): b072099
Changes for docker and requirements
Browse files- Dockerfile +6 -8
- pyproject.toml +7 -61
- requirements.txt +4 -4
Dockerfile
CHANGED
|
@@ -2,17 +2,15 @@ FROM python:3.12-slim
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
-
|
| 6 |
-
RUN pip install --no-cache-dir
|
| 7 |
|
| 8 |
-
# copy everything
|
| 9 |
COPY . .
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
|
|
|
| 13 |
|
| 14 |
-
# expose API port (FastAPI default)
|
| 15 |
EXPOSE 8000
|
| 16 |
|
| 17 |
-
|
| 18 |
-
CMD ["server"]
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
+
COPY requirements.txt .
|
| 6 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 7 |
|
|
|
|
| 8 |
COPY . .
|
| 9 |
|
| 10 |
+
ENV API_BASE_URL="https://router.huggingface.co/v1"
|
| 11 |
+
ENV MODEL_NAME="Qwen/Qwen2.5-72B-Instruct"
|
| 12 |
+
ENV HF_TOKEN=""
|
| 13 |
|
|
|
|
| 14 |
EXPOSE 8000
|
| 15 |
|
| 16 |
+
CMD ["python", "inference.py"]
|
|
|
pyproject.toml
CHANGED
|
@@ -1,74 +1,20 @@
|
|
| 1 |
-
[build-system]
|
| 2 |
-
requires = ["setuptools>=61.0", "wheel"]
|
| 3 |
-
build-backend = "setuptools.build_meta"
|
| 4 |
-
|
| 5 |
[project]
|
| 6 |
name = "debugops"
|
| 7 |
version = "1.0.0"
|
| 8 |
-
description = "
|
| 9 |
-
|
| 10 |
-
requires-python = ">=3.11"
|
| 11 |
-
license = {text = "MIT"}
|
| 12 |
-
|
| 13 |
-
authors = [
|
| 14 |
-
{name = "Prashasti Poojary", email = "your.email@example.com"}
|
| 15 |
-
]
|
| 16 |
-
|
| 17 |
-
keywords = [
|
| 18 |
-
"reinforcement-learning",
|
| 19 |
-
"incident-response",
|
| 20 |
-
"sre",
|
| 21 |
-
"devops",
|
| 22 |
-
"openenv"
|
| 23 |
-
]
|
| 24 |
-
|
| 25 |
-
classifiers = [
|
| 26 |
-
"Development Status :: 4 - Beta",
|
| 27 |
-
"Intended Audience :: Developers",
|
| 28 |
-
"Intended Audience :: Science/Research",
|
| 29 |
-
"License :: OSI Approved :: MIT License",
|
| 30 |
-
"Programming Language :: Python :: 3",
|
| 31 |
-
"Programming Language :: Python :: 3.11",
|
| 32 |
-
"Programming Language :: Python :: 3.12",
|
| 33 |
-
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
| 34 |
-
]
|
| 35 |
-
|
| 36 |
dependencies = [
|
| 37 |
"fastapi>=0.110.0",
|
| 38 |
"uvicorn>=0.29.0",
|
| 39 |
-
"pydantic>=2.6.4",
|
| 40 |
"openai>=1.0.0",
|
|
|
|
| 41 |
"openenv-core>=0.2.0",
|
| 42 |
-
"
|
| 43 |
-
]
|
| 44 |
-
|
| 45 |
-
[project.optional-dependencies]
|
| 46 |
-
dev = [
|
| 47 |
-
"pytest>=7.0",
|
| 48 |
-
"black>=23.0",
|
| 49 |
-
"flake8>=6.0,<7.2.0",
|
| 50 |
-
"ruff>=0.1.0",
|
| 51 |
]
|
| 52 |
|
| 53 |
-
[project.urls]
|
| 54 |
-
Homepage = "https://github.com/pr1397/AI-Incident-Response-Environment"
|
| 55 |
-
Repository = "https://github.com/pr1397/AI-Incident-Response-Environment"
|
| 56 |
-
Issues = "https://github.com/pr1397/AI-Incident-Response-Environment/issues"
|
| 57 |
-
"HuggingFace Space" = "https://huggingface.co/spaces/prashasti12/AI-debugging-agent"
|
| 58 |
-
|
| 59 |
[project.scripts]
|
| 60 |
server = "server.app:main"
|
| 61 |
|
| 62 |
-
[
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
[tool.setuptools.package-data]
|
| 66 |
-
"*" = ["*.yaml", "*.yml"]
|
| 67 |
-
|
| 68 |
-
[tool.ruff]
|
| 69 |
-
line-length = 100
|
| 70 |
-
target-version = "py311"
|
| 71 |
-
|
| 72 |
-
[tool.black]
|
| 73 |
-
line-length = 100
|
| 74 |
-
target-version = ["py311", "py312"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
[project]
|
| 2 |
name = "debugops"
|
| 3 |
version = "1.0.0"
|
| 4 |
+
description = "AI Incident Response RL environment (OpenEnv)"
|
| 5 |
+
requires-python = ">=3.10"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
dependencies = [
|
| 7 |
"fastapi>=0.110.0",
|
| 8 |
"uvicorn>=0.29.0",
|
|
|
|
| 9 |
"openai>=1.0.0",
|
| 10 |
+
"python-dotenv>=1.0.0",
|
| 11 |
"openenv-core>=0.2.0",
|
| 12 |
+
"pydantic>=2.0.0",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
]
|
| 14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
[project.scripts]
|
| 16 |
server = "server.app:main"
|
| 17 |
|
| 18 |
+
[build-system]
|
| 19 |
+
requires = ["hatchling"]
|
| 20 |
+
build-backend = "hatchling.build"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
requirements.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
-
fastapi=
|
| 2 |
-
uvicorn=
|
| 3 |
-
pydantic==2.6.4
|
| 4 |
openai>=1.0.0
|
|
|
|
| 5 |
openenv-core>=0.2.0
|
| 6 |
-
|
|
|
|
| 1 |
+
fastapi>=0.110.0
|
| 2 |
+
uvicorn>=0.29.0
|
|
|
|
| 3 |
openai>=1.0.0
|
| 4 |
+
python-dotenv>=1.0.0
|
| 5 |
openenv-core>=0.2.0
|
| 6 |
+
pydantic>=2.0.0
|