Alex Young 2024-04-15
Check whether we are passed a warmup file before trying to see if it exists
@bb25e987405207afd7d674b47ad78f5d5929231d
whisper_online_server.py
--- whisper_online_server.py
+++ whisper_online_server.py
@@ -63,7 +63,7 @@
 
 
 
-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)
 
Add a comment
List