Spaces:
Sleeping
Sleeping
updated reqs
Browse files- Dockerfile +1 -0
- requirements.txt +1 -1
- server.py +2 -2
Dockerfile
CHANGED
@@ -27,6 +27,7 @@ RUN chmod 777 /uploads
|
|
27 |
|
28 |
# Install requirements.txt
|
29 |
# RUN conda install ffmpeg
|
|
|
30 |
RUN pip install --no-cache-dir --upgrade -r /requirements.txt
|
31 |
|
32 |
# Start the FastAPI app on port 7860, the default port expected by Spaces
|
|
|
27 |
|
28 |
# Install requirements.txt
|
29 |
# RUN conda install ffmpeg
|
30 |
+
RUN pip install --upgrade pip
|
31 |
RUN pip install --no-cache-dir --upgrade -r /requirements.txt
|
32 |
|
33 |
# Start the FastAPI app on port 7860, the default port expected by Spaces
|
requirements.txt
CHANGED
@@ -133,7 +133,7 @@ ptyprocess==0.7.0
|
|
133 |
pure-eval==0.2.2
|
134 |
pyasn1==0.4.8
|
135 |
pyasn1-modules==0.2.8
|
136 |
-
|
137 |
pycairo==1.20.1
|
138 |
pycodestyle==2.10.0
|
139 |
pycparser==2.21
|
|
|
133 |
pure-eval==0.2.2
|
134 |
pyasn1==0.4.8
|
135 |
pyasn1-modules==0.2.8
|
136 |
+
PyAudio==0.2.14
|
137 |
pycairo==1.20.1
|
138 |
pycodestyle==2.10.0
|
139 |
pycparser==2.21
|
server.py
CHANGED
@@ -96,8 +96,8 @@ async def predictor(names, file_uploads, usersNum, recordingsNum):
|
|
96 |
except Exception as error:
|
97 |
print("An exception occurred:", type(error).__name__)
|
98 |
print("Exception details:", error)
|
99 |
-
|
100 |
-
|
101 |
# print("test error ", error)
|
102 |
|
103 |
# calculates cosine similarity between the ground truth (test file) and registered audios
|
|
|
96 |
except Exception as error:
|
97 |
print("An exception occurred:", type(error).__name__)
|
98 |
print("Exception details:", error)
|
99 |
+
test_pos_emb = np.array([encoder.embed_speaker(wavs)
|
100 |
+
for wavs in test_pos_wavs.values()])
|
101 |
# print("test error ", error)
|
102 |
|
103 |
# calculates cosine similarity between the ground truth (test file) and registered audios
|