From fc4b3cd5188664e1ca64475594909b8820762448 Mon Sep 17 00:00:00 2001 From: Alex Young Date: Sun, 14 Apr 2024 19:38:41 +0100 Subject: [PATCH] Check whether we are passed a warmup file before trying to see if it exists --- whisper_online_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whisper_online_server.py b/whisper_online_server.py index 9a4cc0b..fdd6a46 100644 --- a/whisper_online_server.py +++ b/whisper_online_server.py @@ -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)