diff --git a/build/pyinstaller/hooks/hook-whisper.py b/build/pyinstaller/hooks/hook-whisper.py index d42a1e2a18a..184d234339e 100644 --- a/build/pyinstaller/hooks/hook-whisper.py +++ b/build/pyinstaller/hooks/hook-whisper.py @@ -26,7 +26,7 @@ candidates = [ "tensorflow-macos", "tensorflow-aarch64", ] -for candidate in datas: +for candidate in candidates: try: if importlib.util.find_spec(candidate): datas += copy_metadata(candidate)