Spaces:
Running
Running
fix: Try pushing custom whisper cache folder.
Browse files- .gitignore +1 -0
- Dockerfile +0 -2
- app.py +1 -1
- whisper_cache/empty.txt +0 -0
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
venv
|
Dockerfile
CHANGED
@@ -14,7 +14,5 @@ COPY . .
|
|
14 |
|
15 |
ENV H2O_WAVE_LISTEN=":7860"
|
16 |
ENV H2O_WAVE_ADDRESS='http://127.0.0.1:7860'
|
17 |
-
ENV TRANSFORMERS_CACHE='/.hfcache/huggingface/hub'
|
18 |
-
ENV XDG_CACHE_HOME='/.whisper-cache'
|
19 |
|
20 |
CMD ["wave", "run", "app", "--no-reload"]
|
|
|
14 |
|
15 |
ENV H2O_WAVE_LISTEN=":7860"
|
16 |
ENV H2O_WAVE_ADDRESS='http://127.0.0.1:7860'
|
|
|
|
|
17 |
|
18 |
CMD ["wave", "run", "app", "--no-reload"]
|
app.py
CHANGED
@@ -55,7 +55,7 @@ async def initialize_app(q: Q):
|
|
55 |
# Set initial argument values
|
56 |
q.app.cards = ['main', 'error']
|
57 |
|
58 |
-
q.app.model = whisper.load_model('base')
|
59 |
|
60 |
q.app.initialized = True
|
61 |
|
|
|
55 |
# Set initial argument values
|
56 |
q.app.cards = ['main', 'error']
|
57 |
|
58 |
+
q.app.model = whisper.load_model('base', download_root='whisper_cache')
|
59 |
|
60 |
q.app.initialized = True
|
61 |
|
whisper_cache/empty.txt
ADDED
File without changes
|