Fix Dockerfile: Remove non-existent models folder copy and fix health endpoint
Browse files- Dockerfile +1 -2
- api/main.py +1 -1
Dockerfile
CHANGED
|
@@ -11,9 +11,8 @@ WORKDIR /app
|
|
| 11 |
COPY api/requirements.txt ./requirements.txt
|
| 12 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 13 |
|
| 14 |
-
# Copy application code
|
| 15 |
COPY api ./api
|
| 16 |
-
COPY models ./models
|
| 17 |
|
| 18 |
# Spaces injects the listening port through the PORT env var
|
| 19 |
ENV PORT=7860
|
|
|
|
| 11 |
COPY api/requirements.txt ./requirements.txt
|
| 12 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 13 |
|
| 14 |
+
# Copy application code
|
| 15 |
COPY api ./api
|
|
|
|
| 16 |
|
| 17 |
# Spaces injects the listening port through the PORT env var
|
| 18 |
ENV PORT=7860
|
api/main.py
CHANGED
|
@@ -851,7 +851,7 @@ async def health_check():
|
|
| 851 |
"status": "healthy" if MODEL_PIPELINE is not None else "unhealthy",
|
| 852 |
"timestamp": datetime.now().isoformat(),
|
| 853 |
"model_loaded": MODEL_PIPELINE is not None,
|
| 854 |
-
"
|
| 855 |
}
|
| 856 |
|
| 857 |
|
|
|
|
| 851 |
"status": "healthy" if MODEL_PIPELINE is not None else "unhealthy",
|
| 852 |
"timestamp": datetime.now().isoformat(),
|
| 853 |
"model_loaded": MODEL_PIPELINE is not None,
|
| 854 |
+
"model_repo": HF_MODEL_REPO
|
| 855 |
}
|
| 856 |
|
| 857 |
|