

Check whether we are passed a warmup file before trying to see if it exists
@bb25e987405207afd7d674b47ad78f5d5929231d
--- whisper_online_server.py
+++ whisper_online_server.py
... | ... | @@ -63,7 +63,7 @@ |
63 | 63 |
|
64 | 64 |
|
65 | 65 |
|
66 |
-if os.path.exists(args.warmup_file): |
|
66 |
+if args.warmup_file and os.path.exists(args.warmup_file): |
|
67 | 67 |
# load the audio into the LRU cache before we start the timer |
68 | 68 |
a = load_audio_chunk(args.warmup_file,0,1) |
69 | 69 |
|
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?