Spaces:
Running
Running
update
Browse files- Dockerfile +3 -3
- build_vad_go.sh +4 -4
- silero/go.mod +0 -13
Dockerfile
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
FROM golang:1.23
|
2 |
|
3 |
-
WORKDIR /
|
4 |
|
5 |
-
COPY . /
|
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 |
# RUN source vad_go_venv/bin/activate
|
12 |
-
ENV PATH="/
|
13 |
|
14 |
RUN pip install --upgrade pip
|
15 |
RUN pip install --no-cache-dir --upgrade -r /data/GolandProjects/vad_go/requirements.txt
|
|
|
1 |
FROM golang:1.23
|
2 |
|
3 |
+
WORKDIR /code
|
4 |
|
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 |
# RUN source vad_go_venv/bin/activate
|
12 |
+
ENV PATH="/code/vad_go_venv/bin:$PATH"
|
13 |
|
14 |
RUN pip install --upgrade pip
|
15 |
RUN pip install --no-cache-dir --upgrade -r /data/GolandProjects/vad_go/requirements.txt
|
build_vad_go.sh
CHANGED
@@ -9,7 +9,7 @@ cp ./build/nx_vad ../vad_bins/nx_vad
|
|
9 |
cd ..
|
10 |
|
11 |
# silero
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
|
|
9 |
cd ..
|
10 |
|
11 |
# silero
|
12 |
+
cd silero
|
13 |
+
bash build_silero_vad.sh
|
14 |
+
cp ./build/silero ../vad_bins/silero
|
15 |
+
cd ..
|
silero/go.mod
DELETED
@@ -1,13 +0,0 @@
|
|
1 |
-
module silero
|
2 |
-
|
3 |
-
go 1.23.4
|
4 |
-
|
5 |
-
require (
|
6 |
-
github.com/go-audio/wav v1.1.0
|
7 |
-
github.com/streamer45/silero-vad-go v0.2.1
|
8 |
-
)
|
9 |
-
|
10 |
-
require (
|
11 |
-
github.com/go-audio/audio v1.0.0 // indirect
|
12 |
-
github.com/go-audio/riff v1.0.0 // indirect
|
13 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|