Added a debug log line when the model has finished loading.
Also removed some redundant info from the startup debug line.
This commit is contained in:
parent
dd0af2221f
commit
3da736422d
@ -23,7 +23,7 @@ def _whisper_processor(inqueue,
|
||||
logger = logging.getLogger(
|
||||
'play-daemon.SubtitlesWhisperHandler._whisper_processor')
|
||||
logger.setLevel(loglevel)
|
||||
logger.debug('Starting _whisper_processor on %s', device)
|
||||
logger.debug('Starting on %s', device)
|
||||
|
||||
rundevice = 'cpu'
|
||||
if device != 'cpu':
|
||||
@ -38,6 +38,7 @@ def _whisper_processor(inqueue,
|
||||
whisperModel = whisper.load_model(modelname,
|
||||
download_root=modeldir,
|
||||
device=rundevice)
|
||||
logger.debug('Model loaded, awaiting jobs.')
|
||||
while True:
|
||||
try:
|
||||
trackname, inpath, outpath, language = inqueue.get_nowait()
|
||||
|
Loading…
x
Reference in New Issue
Block a user