Spaces:
Sleeping
Sleeping
added debug statement
Browse files- Dockerfile +7 -4
- README.md +0 -1
Dockerfile
CHANGED
|
@@ -6,7 +6,8 @@ RUN mkdir /whisper && \
|
|
| 6 |
|
| 7 |
WORKDIR /whisper
|
| 8 |
|
| 9 |
-
|
|
|
|
| 10 |
RUN make main
|
| 11 |
|
| 12 |
FROM python:3.10 as whisper
|
|
@@ -22,9 +23,11 @@ COPY main.py /root
|
|
| 22 |
COPY youtubeaudio.py /root
|
| 23 |
|
| 24 |
WORKDIR /root
|
| 25 |
-
|
|
|
|
| 26 |
RUN mkdir /root/models
|
| 27 |
-
|
|
|
|
| 28 |
COPY --from=build /whisper/main /usr/local/bin/whisper
|
| 29 |
|
| 30 |
-
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 6 |
|
| 7 |
WORKDIR /whisper
|
| 8 |
|
| 9 |
+
ARG model=base
|
| 10 |
+
RUN bash ./models/download-ggml-model.sh "${model}"
|
| 11 |
RUN make main
|
| 12 |
|
| 13 |
FROM python:3.10 as whisper
|
|
|
|
| 23 |
COPY youtubeaudio.py /root
|
| 24 |
|
| 25 |
WORKDIR /root
|
| 26 |
+
ARG model=base
|
| 27 |
+
ENV model=$model
|
| 28 |
RUN mkdir /root/models
|
| 29 |
+
RUN mkdir -p -m 777 /tmp/holosubs/results
|
| 30 |
+
COPY --from=build "/whisper/models/ggml-${model}.bin" "/root/models/ggml-${model}.bin"
|
| 31 |
COPY --from=build /whisper/main /usr/local/bin/whisper
|
| 32 |
|
| 33 |
+
CMD ["pwd","&&","uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
README.md
CHANGED
|
@@ -6,7 +6,6 @@ colorTo: green
|
|
| 6 |
sdk: docker
|
| 7 |
pinned: false
|
| 8 |
license: mit
|
| 9 |
-
app_file: main.py
|
| 10 |
---
|
| 11 |
|
| 12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 6 |
sdk: docker
|
| 7 |
pinned: false
|
| 8 |
license: mit
|
|
|
|
| 9 |
---
|
| 10 |
|
| 11 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|