Spaces:
Runtime error
Runtime error
valentin.brajon
commited on
Commit
·
c55ea5f
1
Parent(s):
36d4bc9
fix: extras
Browse files- Dockerfile +6 -3
Dockerfile
CHANGED
|
@@ -16,16 +16,19 @@ RUN apt-get update && \
|
|
| 16 |
python3-dev && \
|
| 17 |
rm -rf /var/lib/apt/lists/*
|
| 18 |
|
| 19 |
-
RUN pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128
|
| 20 |
|
| 21 |
COPY . .
|
| 22 |
|
| 23 |
-
|
| 24 |
-
RUN pip install --no-cache-dir .[whisper-timestamped,diart]
|
| 25 |
|
| 26 |
# Expose port for Hugging Face Spaces
|
| 27 |
EXPOSE 7860
|
| 28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
ENTRYPOINT ["whisperlivekit-server", "--host", "0.0.0.0", "--port", "7860"]
|
| 30 |
|
| 31 |
# Default args for CZ transcription
|
|
|
|
| 16 |
python3-dev && \
|
| 17 |
rm -rf /var/lib/apt/lists/*
|
| 18 |
|
| 19 |
+
RUN pip install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128
|
| 20 |
|
| 21 |
COPY . .
|
| 22 |
|
| 23 |
+
RUN pip install --no-cache-dir . whisper-timestamped diart
|
|
|
|
| 24 |
|
| 25 |
# Expose port for Hugging Face Spaces
|
| 26 |
EXPOSE 7860
|
| 27 |
|
| 28 |
+
# Add health check for better debugging
|
| 29 |
+
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s \
|
| 30 |
+
CMD curl -f http://localhost:7860/health || exit 1
|
| 31 |
+
|
| 32 |
ENTRYPOINT ["whisperlivekit-server", "--host", "0.0.0.0", "--port", "7860"]
|
| 33 |
|
| 34 |
# Default args for CZ transcription
|