nuernie commited on
Commit
4d66377
Β·
1 Parent(s): d8b0630
Files changed (1) hide show
  1. app.py +0 -11
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
  # β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”