nuernie
commited on
Commit
Β·
b0a8792
1
Parent(s):
75a1c55
adjust
Browse files
app.py
CHANGED
@@ -3,7 +3,9 @@ import logging
|
|
3 |
from whisper_live.server import TranscriptionServer
|
4 |
|
5 |
# Set up HuggingFace cache directory
|
6 |
-
|
|
|
|
|
7 |
|
8 |
# βββββββββββββββββββββββββββββ
|
9 |
# Logging
|
|
|
3 |
from whisper_live.server import TranscriptionServer
|
4 |
|
5 |
# Set up HuggingFace cache directory
|
6 |
+
cache_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), '.cache', 'huggingface')
|
7 |
+
os.makedirs(cache_dir, exist_ok=True) # Ensure the directory exists
|
8 |
+
os.environ['HF_HOME'] = cache_dir
|
9 |
|
10 |
# βββββββββββββββββββββββββββββ
|
11 |
# Logging
|