Spaces:
Sleeping
Sleeping
SantosPatazca
commited on
Commit
路
da11a33
1
Parent(s):
beaf4db
chore(audio): add librosa stack (numpy<2, scipy, numba, llvmlite, audioread)
Browse files- Dockerfile +2 -2
- requirements.txt +8 -46
Dockerfile
CHANGED
@@ -8,13 +8,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
8 |
libsndfile1 \
|
9 |
&& rm -rf /var/lib/apt/lists/*
|
10 |
|
11 |
-
|
12 |
|
|
|
13 |
RUN pip install --upgrade pip
|
14 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
15 |
|
16 |
COPY . .
|
17 |
|
18 |
EXPOSE 7860
|
19 |
-
|
20 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
8 |
libsndfile1 \
|
9 |
&& rm -rf /var/lib/apt/lists/*
|
10 |
|
11 |
+
ENV PIP_NO_CACHE_DIR=1 PYTHONUNBUFFERED=1
|
12 |
|
13 |
+
COPY requirements.txt .
|
14 |
RUN pip install --upgrade pip
|
15 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
16 |
|
17 |
COPY . .
|
18 |
|
19 |
EXPOSE 7860
|
|
|
20 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
requirements.txt
CHANGED
@@ -32,6 +32,13 @@ python-multipart==0.0.20
|
|
32 |
vosk==0.3.45
|
33 |
ffmpeg-python==0.2.0
|
34 |
pydub==0.25.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
soundfile==0.12.1
|
36 |
|
37 |
# IA y Machine Learning
|
@@ -53,7 +60,7 @@ googleapis-common-protos==1.70.0
|
|
53 |
# HTTP Requests
|
54 |
requests==2.32.4
|
55 |
|
56 |
-
# Dependencias de Sistema
|
57 |
proto-plus==1.26.1
|
58 |
protobuf==5.29.5
|
59 |
grpcio==1.73.1
|
@@ -66,48 +73,3 @@ cachetools==5.5.2
|
|
66 |
|
67 |
# Servidor de Producci贸n (opcional)
|
68 |
gunicorn==23.0.0
|
69 |
-
|
70 |
-
# ========================================
|
71 |
-
# DEPENDENCIAS A REMOVER (no utilizadas)
|
72 |
-
# ========================================
|
73 |
-
# annotated-types==0.7.0
|
74 |
-
# anyio==4.9.0
|
75 |
-
# certifi==2025.6.15
|
76 |
-
# cffi==1.17.1
|
77 |
-
# charset-normalizer==3.4.2
|
78 |
-
# click==8.2.1
|
79 |
-
# colorama==0.4.6
|
80 |
-
# distro==1.9.0
|
81 |
-
# dnspython==2.7.0
|
82 |
-
# email_validator==2.2.0
|
83 |
-
# filelock==3.18.0
|
84 |
-
# fsspec==2025.5.1
|
85 |
-
# future==1.0.0
|
86 |
-
# greenlet==3.2.3
|
87 |
-
# h11==0.16.0
|
88 |
-
# httpcore==1.0.9
|
89 |
-
# httplib2==0.22.0
|
90 |
-
# httpx==0.28.1
|
91 |
-
# huggingface-hub==0.33.0
|
92 |
-
# idna==3.10
|
93 |
-
# Jinja2==3.1.6
|
94 |
-
# jiter==0.10.0
|
95 |
-
# MarkupSafe==3.0.2
|
96 |
-
# mpmath==1.3.0
|
97 |
-
# networkx==3.5
|
98 |
-
# numpy==2.3.1
|
99 |
-
# openai==1.91.0
|
100 |
-
# packaging==25.0
|
101 |
-
# pycparser==2.22
|
102 |
-
# pyparsing==3.2.3
|
103 |
-
# PyYAML==6.0.2
|
104 |
-
# regex==2024.11.6
|
105 |
-
# sentencepiece==0.2.0
|
106 |
-
# sniffio==1.3.1
|
107 |
-
# srt==3.5.3
|
108 |
-
# sympy==1.14.0
|
109 |
-
# tqdm==4.67.1
|
110 |
-
# typing-inspection==0.4.1
|
111 |
-
# typing_extensions==4.14.0
|
112 |
-
# urllib3==2.5.0
|
113 |
-
# websockets==15.0.1
|
|
|
32 |
vosk==0.3.45
|
33 |
ffmpeg-python==0.2.0
|
34 |
pydub==0.25.1
|
35 |
+
# --- Audio stack (librosa + deps, compatible con Py3.11 y slim) ---
|
36 |
+
numpy==1.26.4
|
37 |
+
scipy==1.11.4
|
38 |
+
numba==0.59.1
|
39 |
+
llvmlite==0.42.0
|
40 |
+
librosa==0.10.2.post1
|
41 |
+
audioread==3.0.1
|
42 |
soundfile==0.12.1
|
43 |
|
44 |
# IA y Machine Learning
|
|
|
60 |
# HTTP Requests
|
61 |
requests==2.32.4
|
62 |
|
63 |
+
# Dependencias de Sistema (Python)
|
64 |
proto-plus==1.26.1
|
65 |
protobuf==5.29.5
|
66 |
grpcio==1.73.1
|
|
|
73 |
|
74 |
# Servidor de Producci贸n (opcional)
|
75 |
gunicorn==23.0.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|