AshDavid12 commited on
Commit
f10feac
·
1 Parent(s): 3942686

trying to build

Browse files
Files changed (2) hide show
  1. infer.py +2 -1
  2. whisper_online.py +1 -1
infer.py CHANGED
@@ -10,7 +10,8 @@ import requests
10
 
11
  import whisper_online
12
 
13
- handlers=[logging.StreamHandler(sys.stdout)])
 
14
 
15
  # Try to import the module
16
  try:
 
10
 
11
  import whisper_online
12
 
13
+ logger = logging.getLogger(__name__)
14
+ logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s', handlers=[logging.StreamHandler(sys.stdout)])
15
 
16
  # Try to import the module
17
  try:
whisper_online.py CHANGED
@@ -33,7 +33,7 @@ class ASRBase:
33
  sep = " " # join transcribe words with this character (" " for whisper_timestamped,
34
 
35
  # "" for faster-whisper because it emits the spaces when neeeded)
36
-
37
  self.logfile = logfile
38
 
39
  self.transcribe_kargs = {}
 
33
  sep = " " # join transcribe words with this character (" " for whisper_timestamped,
34
 
35
  # "" for faster-whisper because it emits the spaces when neeeded)
36
+ def __init__(self, lan, modelsize=None, cache_dir=None, model_dir=None, logfile=sys.stderr):
37
  self.logfile = logfile
38
 
39
  self.transcribe_kargs = {}