Update project to use MLX for Apple Silicon support

Update dependencies for MLX models
Add automatic model selection based on available RAM
Rewrite README with MLX-specific documentation
Update .gitignore for MLX project structure
This commit is contained in:
Damien
2026-06-17 09:00:35 +02:00
parent bda2b516a4
commit 47f2eda4f6
12 changed files with 994 additions and 743 deletions

View File

@@ -4,32 +4,26 @@ build-backend = "setuptools.build_meta"
[project]
name = "audio-summary-with-local-LLM"
version = "0.1.0"
description = 'Sum up your local or remote files with a local LLM'
keywords = ["audio", "summary", "local-llm", "ollama", "whisper"]
version = "0.2.0"
description = 'Transcribe and summarize audio/video files fully on Apple Silicon via MLX'
keywords = ["audio", "summary", "local-llm", "mlx", "apple-silicon", "voxtral", "qwen3"]
readme = "README.md"
requires-python = ">=3.12, <3.13"
authors = [
{ name = "darnodo", email = "sepales.pret0h@icloud.com" },
]
dependencies = [
"ffmpeg>=1.4",
"ollama>=0.4.7",
"openai-whisper>=20240930",
"torch>=2.6.0",
"torchaudio>=2.6.0",
"torchvision>=0.21.0",
"transformers>=4.50.2",
"mlx-lm>=0.21.0",
"mlx-audio>=0.2.0",
"mlx-whisper>=0.4.0",
"psutil>=6.0.0",
"yt-dlp>=2025.3.27",
]
[project.scripts]
audio-summary = "summary:main"
audio-summary = "audio_summary.cli:main"
[tool.setuptools]
py-modules = ["summary"]
[tool.setuptools.package-dir]
"" = "src"
[tool.setuptools.packages.find]
where = ["src"]
[tool.ruff]
# Exclude a variety of commonly ignored directories.
@@ -66,8 +60,8 @@ exclude = [
line-length = 88
indent-width = 4
# Assume Python 3.8
target-version = "py38"
# Match the project's required Python version.
target-version = "py312"
[tool.ruff.lint]
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.