Skip to content

Commit

Permalink
build: update macOS version and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
zackees committed Feb 1, 2025
1 parent 1ca1ff3 commit 8d09d1d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]

Expand Down Expand Up @@ -60,3 +60,6 @@ disable_error_code = ["import-untyped"]
[tool.black]
line-length = 200
target-version = ['py310']

[tool.uv.workspace]
members = ["tmp"]
3 changes: 2 additions & 1 deletion src/transcribe_anything/insanley_fast_whisper_reqs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 8d09d1d

Please sign in to comment.