Spaces:
Runtime error
Runtime error
Pranav Mishra Claude commited on
Commit ·
f3c42b1
1
Parent(s): e46f847
Add ffmpeg system dependencies to fix audio processing
Browse files- Install ffmpeg and libsndfile1 in Dockerfile
- Fix "No such file or directory: 'ffprobe'" errors
- Enable proper audio format conversion for ML models
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Dockerfile +6 -0
Dockerfile
CHANGED
|
@@ -1,6 +1,12 @@
|
|
| 1 |
# Use Python 3.10 for better package compatibility
|
| 2 |
FROM python:3.10-slim
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
# Create user for HF Spaces (required)
|
| 5 |
RUN useradd -m -u 1000 user
|
| 6 |
USER user
|
|
|
|
| 1 |
# Use Python 3.10 for better package compatibility
|
| 2 |
FROM python:3.10-slim
|
| 3 |
|
| 4 |
+
# Install system dependencies (including ffmpeg for audio processing)
|
| 5 |
+
RUN apt-get update && apt-get install -y \
|
| 6 |
+
ffmpeg \
|
| 7 |
+
libsndfile1 \
|
| 8 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 9 |
+
|
| 10 |
# Create user for HF Spaces (required)
|
| 11 |
RUN useradd -m -u 1000 user
|
| 12 |
USER user
|