Check whether we are passed a warmup file before trying to see if it exists
This commit is contained in:
parent
70bc57180c
commit
fc4b3cd518
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
# load the audio into the LRU cache before we start the timer
|
||||||
a = load_audio_chunk(args.warmup_file,0,1)
|
a = load_audio_chunk(args.warmup_file,0,1)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue