Spaces:
Runtime error
Runtime error
Arnaudding001
commited on
Commit
•
53571b8
1
Parent(s):
606aeb0
Create dockerfile
Browse files- dockerfile +20 -0
dockerfile
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM huggingface/transformers-pytorch-gpu
|
2 |
+
EXPOSE 7860
|
3 |
+
|
4 |
+
ADD . /opt/whisper-webui/
|
5 |
+
|
6 |
+
# Latest version of transformers-pytorch-gpu seems to lack tk.
|
7 |
+
# Further, pip install fails, so we must upgrade pip first.
|
8 |
+
RUN apt-get -y install python3-tk
|
9 |
+
RUN python3 -m pip install --upgrade pip &&\
|
10 |
+
python3 -m pip install -r /opt/whisper-webui/requirements.txt
|
11 |
+
|
12 |
+
# Note: Models will be downloaded on demand to the directory /root/.cache/whisper.
|
13 |
+
# You can also bind this directory in the container to somewhere on the host.
|
14 |
+
|
15 |
+
# To be able to see logs in real time
|
16 |
+
ENV PYTHONUNBUFFERED=1
|
17 |
+
|
18 |
+
WORKDIR /opt/whisper-webui/
|
19 |
+
ENTRYPOINT ["python3"]
|
20 |
+
CMD ["app-network.py"]
|