Spaces:
Running
Running
text
Browse files- Dockerfile +15 -0
- README.md +1 -1
- index.html +3 -3
- nginx.conf +17 -0
Dockerfile
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM nginx
|
2 |
+
COPY nginx.conf /etc/nginx/nginx.conf
|
3 |
+
|
4 |
+
# RUN useradd -m -u 1000 user
|
5 |
+
|
6 |
+
# USER user
|
7 |
+
|
8 |
+
# ENV HOME=/home/user \
|
9 |
+
# PATH=/home/user/.local/bin:$PATH
|
10 |
+
|
11 |
+
# WORKDIR $HOME/app
|
12 |
+
|
13 |
+
# COPY --chown=user . $HOME/app
|
14 |
+
|
15 |
+
# CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
README.md
CHANGED
@@ -3,7 +3,7 @@ title: Whisper.cpp
|
|
3 |
emoji: 📉
|
4 |
colorFrom: red
|
5 |
colorTo: green
|
6 |
-
sdk:
|
7 |
pinned: false
|
8 |
---
|
9 |
|
|
|
3 |
emoji: 📉
|
4 |
colorFrom: red
|
5 |
colorTo: green
|
6 |
+
sdk: docker
|
7 |
pinned: false
|
8 |
---
|
9 |
|
index.html
CHANGED
@@ -295,9 +295,9 @@
|
|
295 |
function loadWhisper(model) {
|
296 |
let urls = {
|
297 |
'tiny.en': 'https://huggingface.co/datasets/ggerganov/whisper.cpp/resolve/main/ggml-tiny.en.bin',
|
298 |
-
'tiny': 'https://huggingface.co/datasets/ggerganov/whisper.cpp/resolve/main/ggml-
|
299 |
-
'base.en': 'https://huggingface.co/datasets/ggerganov/whisper.cpp/resolve/main/ggml-
|
300 |
-
'base': 'https://huggingface.co/datasets/ggerganov/whisper.cpp/resolve/main/ggml-
|
301 |
};
|
302 |
|
303 |
let sizes = {
|
|
|
295 |
function loadWhisper(model) {
|
296 |
let urls = {
|
297 |
'tiny.en': 'https://huggingface.co/datasets/ggerganov/whisper.cpp/resolve/main/ggml-tiny.en.bin',
|
298 |
+
'tiny': 'https://huggingface.co/datasets/ggerganov/whisper.cpp/resolve/main/ggml-whisper-tiny.bin',
|
299 |
+
'base.en': 'https://huggingface.co/datasets/ggerganov/whisper.cpp/resolve/main/ggml-whisper-base.en.bin',
|
300 |
+
'base': 'https://huggingface.co/datasets/ggerganov/whisper.cpp/resolve/main/ggml-whisper-base.bin',
|
301 |
};
|
302 |
|
303 |
let sizes = {
|
nginx.conf
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
server {
|
2 |
+
listen 80;
|
3 |
+
listen [::]:80;
|
4 |
+
server_name localhost;
|
5 |
+
|
6 |
+
#access_log /var/log/nginx/host.access.log main;
|
7 |
+
|
8 |
+
location / {
|
9 |
+
root /usr/share/nginx/html;
|
10 |
+
index index.html index.htm;
|
11 |
+
|
12 |
+
add_header 'Cross-Origin-Embedder-Policy' 'require-corp';
|
13 |
+
add_header 'Cross-Origin-Opener-Policy' 'same-origin';
|
14 |
+
}
|
15 |
+
#error_page 404 /404.html;
|
16 |
+
|
17 |
+
}
|