Spaces:
Sleeping
Sleeping
Commit
·
ea59cdd
1
Parent(s):
1e1ecd3
- Dockerfile +20 -0
- requirements.txt +3 -1
Dockerfile
CHANGED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.9
|
2 |
+
|
3 |
+
# Install system dependencies
|
4 |
+
RUN apt-get update && apt-get install -y ffmpeg libsndfile1
|
5 |
+
|
6 |
+
# Set the working directory
|
7 |
+
WORKDIR /app
|
8 |
+
|
9 |
+
# Copy requirements and install dependencies
|
10 |
+
COPY requirements.txt .
|
11 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
12 |
+
|
13 |
+
# Copy the application code
|
14 |
+
COPY . .
|
15 |
+
|
16 |
+
# Expose the required port
|
17 |
+
EXPOSE 7860
|
18 |
+
|
19 |
+
# Run the app
|
20 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
requirements.txt
CHANGED
@@ -4,4 +4,6 @@ pydantic
|
|
4 |
librosa
|
5 |
numpy
|
6 |
matplotlib
|
7 |
-
python-multipart
|
|
|
|
|
|
4 |
librosa
|
5 |
numpy
|
6 |
matplotlib
|
7 |
+
python-multipart
|
8 |
+
|
9 |
+
|