Upload folder using huggingface_hub
Browse files- Dockerfile +1 -5
- README.md +2 -7
- app/api/routes_incidents.py +1 -1
Dockerfile
CHANGED
|
@@ -1,11 +1,7 @@
|
|
| 1 |
FROM python:3.12-slim
|
| 2 |
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
|
| 3 |
WORKDIR /app
|
| 4 |
-
|
| 5 |
-
ARG CLASSIC_TOKEN=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
|
| 6 |
-
RUN git config --global url."https://x-access-token:${CLASSIC_TOKEN}@github.com/".insteadOf "https://github.com/"
|
| 7 |
-
|
| 8 |
COPY requirements.txt .
|
| 9 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 10 |
COPY . .
|
| 11 |
-
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 1 |
FROM python:3.12-slim
|
| 2 |
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
|
| 3 |
WORKDIR /app
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
COPY requirements.txt .
|
| 5 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 6 |
COPY . .
|
| 7 |
+
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
README.md
CHANGED
|
@@ -1,9 +1,3 @@
|
|
| 1 |
-
---
|
| 2 |
-
title: ARF API Control Plane
|
| 3 |
-
sdk: docker
|
| 4 |
-
colorFrom: blue
|
| 5 |
-
colorTo: green
|
| 6 |
-
---
|
| 7 |
# arf-api
|
| 8 |
|
| 9 |
ARF API Control Plane (FastAPI)
|
|
@@ -123,4 +117,5 @@ Notes
|
|
| 123 |
-----
|
| 124 |
|
| 125 |
- The governance endpoints use an in-process `RiskEngine` initialized at startup.
|
| 126 |
-
- The outcome recording endpoint is not implemented in this repository and returns HTTP 501.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# arf-api
|
| 2 |
|
| 3 |
ARF API Control Plane (FastAPI)
|
|
|
|
| 117 |
-----
|
| 118 |
|
| 119 |
- The governance endpoints use an in-process `RiskEngine` initialized at startup.
|
| 120 |
+
- The outcome recording endpoint is not implemented in this repository and returns HTTP 501.
|
| 121 |
+
|
app/api/routes_incidents.py
CHANGED
|
@@ -198,7 +198,7 @@ async def evaluate_incident(
|
|
| 198 |
),
|
| 199 |
"confidence": 1.0 - result.get("uncertainty", 0.0),
|
| 200 |
"risk_score": result["risk_score"],
|
| 201 |
-
"status": "
|
| 202 |
}
|
| 203 |
|
| 204 |
response_data = {
|
|
|
|
| 198 |
),
|
| 199 |
"confidence": 1.0 - result.get("uncertainty", 0.0),
|
| 200 |
"risk_score": result["risk_score"],
|
| 201 |
+
"status": "success",
|
| 202 |
}
|
| 203 |
|
| 204 |
response_data = {
|