LAP-DEV commited on
Commit
7a5601a
·
verified ·
1 Parent(s): 5d4235d

Upload 2 files

Browse files
Files changed (2) hide show
  1. _Dockerfile +34 -0
  2. _requirements.txt +19 -0
_Dockerfile ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM debian:bookworm-slim AS builder
2
+
3
+ RUN apt-get update && \
4
+ apt-get install -y curl git python3 python3-pip python3-venv && \
5
+ rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* && \
6
+ mkdir -p /Whisper-WebUI
7
+
8
+ WORKDIR /Whisper-WebUI
9
+
10
+ COPY requirements.txt .
11
+
12
+ RUN python3 -m venv venv && \
13
+ . venv/bin/activate && \
14
+ pip install -U -r requirements.txt
15
+
16
+
17
+ FROM debian:bookworm-slim AS runtime
18
+
19
+ RUN apt-get update && \
20
+ apt-get install -y curl ffmpeg python3 && \
21
+ rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*
22
+
23
+ WORKDIR /Whisper-WebUI
24
+
25
+ COPY . .
26
+ COPY --from=builder /Whisper-WebUI/venv /Whisper-WebUI/venv
27
+
28
+ VOLUME [ "/Whisper-WebUI/models" ]
29
+ VOLUME [ "/Whisper-WebUI/outputs" ]
30
+
31
+ ENV PATH="/Whisper-WebUI/venv/bin:$PATH"
32
+ ENV LD_LIBRARY_PATH=/Whisper-WebUI/venv/lib64/python3.11/site-packages/nvidia/cublas/lib:/Whisper-WebUI/venv/lib64/python3.11/site-packages/nvidia/cudnn/lib
33
+
34
+ ENTRYPOINT [ "python", "app.py" ]
_requirements.txt ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Remove the --extra-index-url line below if you're not using Nvidia GPU.
2
+ # If you're using it, update url to your CUDA version (CUDA 12.1 is minimum requirement):
3
+ # For CUDA 12.1, use : https://download.pytorch.org/whl/cu121
4
+ # For CUDA 12.4, use : https://download.pytorch.org/whl/cu124
5
+ --extra-index-url https://download.pytorch.org/whl/cu121
6
+
7
+ gradio==5.49.1
8
+ pytubefix
9
+ transformers
10
+ torch==2.6
11
+ numpy==1.26.0
12
+ torchaudio==2.6
13
+ ruamel.yaml==0.18.6
14
+ faster-whisper==1.2.0
15
+ pyannote.audio==3.3.1
16
+ ctranslate2==4.6.0
17
+ git+https://github.com/jhj0517/pyrubberband.git
18
+ git+https://github.com/jhj0517/jhj0517-whisper.git
19
+ git+https://github.com/jhj0517/ultimatevocalremover_api.git