Spaces:
Runtime error
Runtime error
bWX1204813
commited on
Commit
·
33534ec
1
Parent(s):
1884263
docker update
Browse files- .gitignore +2 -1
- Dockerfile +19 -0
- app.py +3 -0
- denoisers/__pycache__/SpectralGating.cpython-38.pyc +0 -0
- requirements.txt +2 -0
.gitignore
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
.idea/**
|
2 |
.ipynb_checkpoints/**
|
3 |
nohup.out
|
4 |
-
__pycache__
|
5 |
cache_wav/
|
|
|
|
1 |
.idea/**
|
2 |
.ipynb_checkpoints/**
|
3 |
nohup.out
|
4 |
+
**/__pycache__
|
5 |
cache_wav/
|
6 |
+
cert/
|
Dockerfile
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# syntax=docker/dockerfile:1
|
2 |
+
|
3 |
+
FROM python:3.8-slim-buster
|
4 |
+
LABEL maintainer="Borisov Maksim"
|
5 |
+
|
6 |
+
RUN apt-get install ca-certificates
|
7 |
+
|
8 |
+
ADD cert/* /usr/local/share/ca-certificates/
|
9 |
+
RUN chmod -R 644 /usr/local/share/ca-certificates/ && update-ca-certificates
|
10 |
+
|
11 |
+
WORKDIR /app
|
12 |
+
|
13 |
+
COPY requirements.txt requirements.txt
|
14 |
+
RUN pip3 install -r requirements.txt
|
15 |
+
|
16 |
+
COPY . .
|
17 |
+
|
18 |
+
WORKDIR /app
|
19 |
+
CMD ["python3", "app.py"]
|
app.py
CHANGED
@@ -9,6 +9,9 @@ import torch
|
|
9 |
import torchaudio
|
10 |
import yaml
|
11 |
|
|
|
|
|
|
|
12 |
|
13 |
def denoising_transform(audio, model):
|
14 |
src_path = Path("cache_wav/original/{}.wav".format(str(uuid.uuid4())))
|
|
|
9 |
import torchaudio
|
10 |
import yaml
|
11 |
|
12 |
+
import os
|
13 |
+
os.environ['CURL_CA_BUNDLE'] = ''
|
14 |
+
|
15 |
|
16 |
def denoising_transform(audio, model):
|
17 |
src_path = Path("cache_wav/original/{}.wav".format(str(uuid.uuid4())))
|
denoisers/__pycache__/SpectralGating.cpython-38.pyc
DELETED
Binary file (1.08 kB)
|
|
requirements.txt
CHANGED
@@ -4,3 +4,5 @@ torch
|
|
4 |
torchaudio
|
5 |
hydra-core
|
6 |
omegaconf
|
|
|
|
|
|
4 |
torchaudio
|
5 |
hydra-core
|
6 |
omegaconf
|
7 |
+
gradio
|
8 |
+
requests==2.27.1
|