diff --git a/backend/__init__.py b/backend/__init__.py index e69de29..545ad32 100644 --- a/backend/__init__.py +++ b/backend/__init__.py @@ -0,0 +1,8 @@ +import os +import sys + + +# The macOS wheels for PyTorch (used by Whisper) and FAISS bundle different +# libomp copies. FAISS aborts the process when its copy initializes second. +if sys.platform == "darwin": + os.environ.setdefault("KMP_DUPLICATE_LIB_OK", "TRUE")