nuernie
commited on
Commit
Β·
4d66377
1
Parent(s):
d8b0630
adjust
Browse files
app.py
CHANGED
@@ -1,17 +1,6 @@
|
|
1 |
-
import os
|
2 |
-
from pathlib import Path
|
3 |
from whisper_live.server import TranscriptionServer
|
4 |
import logging
|
5 |
|
6 |
-
# βββββββββββββββββββββββββββββ
|
7 |
-
# Cache Setup
|
8 |
-
# βββββββββββββββββββββββββββββ
|
9 |
-
# Set up cache directory in user's home folder
|
10 |
-
cache_dir = os.path.expanduser('~/.cache/huggingface')
|
11 |
-
os.environ['TRANSFORMERS_CACHE'] = cache_dir
|
12 |
-
# Create cache directory if it doesn't exist
|
13 |
-
Path(cache_dir).mkdir(parents=True, exist_ok=True)
|
14 |
-
|
15 |
# βββββββββββββββββββββββββββββ
|
16 |
# Logging
|
17 |
# βββββββββββββββββββββββββββββ
|
|
|
|
|
|
|
1 |
from whisper_live.server import TranscriptionServer
|
2 |
import logging
|
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
# βββββββββββββββββββββββββββββ
|
5 |
# Logging
|
6 |
# βββββββββββββββββββββββββββββ
|