Spaces:
Sleeping
Sleeping
update
Browse files- Dockerfile +2 -2
- silero/build_silero_vad.sh +7 -0
Dockerfile
CHANGED
@@ -5,10 +5,10 @@ WORKDIR /code
|
|
5 |
COPY . /code
|
6 |
|
7 |
RUN apt-get update
|
8 |
-
RUN apt-get install -y python3-pip python3-venv
|
9 |
|
10 |
RUN python3 -m venv vad_go_venv
|
11 |
-
#
|
12 |
ENV PATH="/code/vad_go_venv/bin:$PATH"
|
13 |
|
14 |
RUN pip install --upgrade pip
|
|
|
5 |
COPY . /code
|
6 |
|
7 |
RUN apt-get update
|
8 |
+
RUN apt-get install -y python3-pip python3-venv wget
|
9 |
|
10 |
RUN python3 -m venv vad_go_venv
|
11 |
+
# source vad_go_venv/bin/activate
|
12 |
ENV PATH="/code/vad_go_venv/bin:$PATH"
|
13 |
|
14 |
RUN pip install --upgrade pip
|
silero/build_silero_vad.sh
CHANGED
@@ -1,5 +1,12 @@
|
|
1 |
#!/usr/bin/env bash
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
mkdir build
|
4 |
|
5 |
go env -w GO111MODULE=on
|
|
|
1 |
#!/usr/bin/env bash
|
2 |
|
3 |
+
# install onnxruntime
|
4 |
+
wget https://github.com/microsoft/onnxruntime/releases/download/v1.20.1/onnxruntime-linux-x64-1.20.1.tgz
|
5 |
+
tar -zxvf onnxruntime-linux-x64-1.20.1.tgz
|
6 |
+
export C_INCLUDE_PATH=$C_INCLUDE_PATH:$(pwd)/onnxruntime-linux-x64-1.20.1/include
|
7 |
+
export LIBRARY_PATH=$LIBRARY_PATH:$(pwd)/onnxruntime-linux-x64-1.20.1/lib
|
8 |
+
|
9 |
+
# build
|
10 |
mkdir build
|
11 |
|
12 |
go env -w GO111MODULE=on
|