nuernie commited on
Commit
75a1c55
Β·
1 Parent(s): 4d66377
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -1,5 +1,9 @@
1
- from whisper_live.server import TranscriptionServer
2
  import logging
 
 
 
 
3
 
4
  # β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
5
  # Logging
 
1
+ import os
2
  import logging
3
+ from whisper_live.server import TranscriptionServer
4
+
5
+ # Set up HuggingFace cache directory
6
+ os.environ['TRANSFORMERS_CACHE'] = os.path.join(os.path.dirname(os.path.abspath(__file__)), '.cache/huggingface')
7
 
8
  # β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
9
  # Logging