Spaces:
Sleeping
Sleeping
FastApi added
Browse files- README.md +2 -2
- app.py +1 -1
- dockerfile +1 -1
README.md
CHANGED
|
@@ -62,7 +62,7 @@ The primary focus is not just on the model's accuracy, but on building a robust,
|
|
| 62 |
|
| 63 |
The project follows a structured MLOps workflow, which is fully automated by the CI/CD pipeline.
|
| 64 |
|
| 65 |
-
|
| 66 |
graph TD
|
| 67 |
A[Start: Push Code to GitHub] --> B{GitHub Actions CI/CD};
|
| 68 |
B --> C[CI: Install Dependencies & Run Tests];
|
|
@@ -75,7 +75,7 @@ graph TD
|
|
| 75 |
H --> I[4. Log Metrics & Model (MLflow)];
|
| 76 |
I --> J[5. Push Model (DVC)];
|
| 77 |
end
|
| 78 |
-
|
| 79 |
|
| 80 |
## ⚙️ Getting Started - Local Setup
|
| 81 |
|
|
|
|
| 62 |
|
| 63 |
The project follows a structured MLOps workflow, which is fully automated by the CI/CD pipeline.
|
| 64 |
|
| 65 |
+
<pre><code class="language-mermaid">
|
| 66 |
graph TD
|
| 67 |
A[Start: Push Code to GitHub] --> B{GitHub Actions CI/CD};
|
| 68 |
B --> C[CI: Install Dependencies & Run Tests];
|
|
|
|
| 75 |
H --> I[4. Log Metrics & Model (MLflow)];
|
| 76 |
I --> J[5. Push Model (DVC)];
|
| 77 |
end
|
| 78 |
+
</code></pre>
|
| 79 |
|
| 80 |
## ⚙️ Getting Started - Local Setup
|
| 81 |
|
app.py
CHANGED
|
@@ -95,4 +95,4 @@ async def predictRoute(payload: ImagePayload):
|
|
| 95 |
# --- RUN THE APP ---
|
| 96 |
# This block is for local development. Gunicorn/Uvicorn will run the app in production.
|
| 97 |
if __name__ == "__main__":
|
| 98 |
-
uvicorn.run(app, host="0.0.0.0", port=
|
|
|
|
| 95 |
# --- RUN THE APP ---
|
| 96 |
# This block is for local development. Gunicorn/Uvicorn will run the app in production.
|
| 97 |
if __name__ == "__main__":
|
| 98 |
+
uvicorn.run(app, host="0.0.0.0", port=8080)
|
dockerfile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
FROM python:3.
|
| 2 |
WORKDIR /app
|
| 3 |
COPY requirements.txt .
|
| 4 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
| 1 |
+
FROM python:3.9
|
| 2 |
WORKDIR /app
|
| 3 |
COPY requirements.txt .
|
| 4 |
RUN pip install --no-cache-dir -r requirements.txt
|