diff --git a/.github/workflows/test_macos.yml b/.github/workflows/test_macos.yml index 0805136..f8fffd3 100644 --- a/.github/workflows/test_macos.yml +++ b/.github/workflows/test_macos.yml @@ -9,7 +9,7 @@ jobs: strategy: matrix: python-version: [3.11.8] - os: [macos-15-large] + os: [macos-latest] steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} diff --git a/pyproject.toml b/pyproject.toml index e5dbefc..8d7c181 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,7 +17,7 @@ dependencies = [ "disklru>=1.0.7", "FileLock", "webvtt-py==0.4.6", - "uv-iso-env>=1.0.33", + "uv-iso-env>=1.0.36", "python-dotenv>=1.0.1", ] @@ -60,3 +60,6 @@ disable_error_code = ["import-untyped"] [tool.black] line-length = 200 target-version = ['py310'] + +[tool.uv.workspace] +members = ["tmp"] diff --git a/src/transcribe_anything/insanley_fast_whisper_reqs.py b/src/transcribe_anything/insanley_fast_whisper_reqs.py index a9e97c1..b5cdb9d 100644 --- a/src/transcribe_anything/insanley_fast_whisper_reqs.py +++ b/src/transcribe_anything/insanley_fast_whisper_reqs.py @@ -180,6 +180,7 @@ def get_current_python_version() -> str: def _get_reqs_generic(has_nvidia: bool) -> list[str]: """Generate the requirements for the generic case.""" deps = [ + "transformers==4.46.3", # 4.47.X has problems with mac mps driver. "pyannote.audio==3.3.2", "openai-whisper==20240930", "insanely-fast-whisper==0.0.15", @@ -214,7 +215,7 @@ def get_environment() -> IsoEnv: venv_dir = HERE / "venv" / "insanely_fast_whisper" has_nvidia = has_nvidia_smi() is_windows = sys.platform == "win32" - if has_nvidia and TENSOR_VERSION == "2.6.0" and is_windows: + if False and has_nvidia and TENSOR_VERSION == "2.6.0" and is_windows: dep_lines = _COMPILED["WIN_CUDA_260"].splitlines() else: dep_lines = _get_reqs_generic(has_nvidia)