mirror of
https://github.com/QuentinFuxa/WhisperLiveKit.git
synced 2026-03-07 22:33:36 +00:00
Check whether we are passed a warmup file before trying to see if it exists
This commit is contained in:
@@ -63,7 +63,7 @@ online = OnlineASRProcessor(asr,tokenizer,buffer_trimming=(args.buffer_trimming,
|
||||
|
||||
|
||||
|
||||
if os.path.exists(args.warmup_file):
|
||||
if args.warmup_file and os.path.exists(args.warmup_file):
|
||||
# load the audio into the LRU cache before we start the timer
|
||||
a = load_audio_chunk(args.warmup_file,0,1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user