MartinT commited on
Commit
d18c8b1
·
1 Parent(s): 4c794c1

fix: Try pushing custom whisper cache folder.

Browse files
Files changed (4) hide show
  1. .gitignore +1 -0
  2. Dockerfile +0 -2
  3. app.py +1 -1
  4. 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