Skip to content

Commit

Permalink
Bump dependencies and change selectors from == to >=
Browse files Browse the repository at this point in the history
  • Loading branch information
AliOsm committed May 20, 2024
1 parent 2e55b7c commit f9df943
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
8 changes: 4 additions & 4 deletions colab_notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"print('جارٍ تجهيز بيئة العمل.')\n",
"\n",
"# Setup Tafrigh.\n",
"%pip install -U tafrigh[wit,whisper]==1.1.3 > install_logs.txt\n",
"%pip install -U tafrigh[wit,whisper]==1.1.4 > install_logs.txt\n",
"\n",
"# Start: Quick fix related to Colab, HuggingFace, and faster-whisper.\n",
"!apt install libcublas11 > fix_logs.txt\n",
Expand All @@ -93,7 +93,7 @@
"# @markdown <h1 dir=\"rtl\">مدخلات خاصة بنماذج Whisper</h1>\n",
"\n",
"# @markdown <p dir=\"rtl\">النموذج المُراد استخدامه للتفريغ</p>\n",
"model = 'large-v2 (\\u0623\\u0641\\u0636\\u0644 \\u062F\\u0642\\u0629)' # @param [\"large-v2 (أفضل دقة)\", \"medium\", \"base\", \"small\", \"tiny (أقل دقة)\"]\n",
"model = 'large-v3 (\\u0623\\u0641\\u0636\\u0644 \\u062F\\u0642\\u0629)' # @param [\"large-v3 (أفضل دقة)\", \"medium\", \"base\", \"small\", \"tiny (أقل دقة)\"]\n",
"\n",
"# @markdown <p dir=\"rtl\">(اختياري) لغة المادة</p>\n",
"language = 'ar' # @param [\"ar\", \"af\", \"am\", \"as\", \"az\", \"ba\", \"be\", \"bg\", \"bn\", \"bo\", \"br\", \"bs\", \"ca\", \"cs\", \"cy\", \"da\", \"de\", \"el\", \"en\", \"es\", \"et\", \"eu\", \"fa\", \"fi\", \"fo\", \"fr\", \"gl\", \"gu\", \"ha\", \"haw\", \"he\", \"hi\", \"hr\", \"ht\", \"hu\", \"hy\", \"id\", \"is\", \"it\", \"ja\", \"jw\", \"ka\", \"kk\", \"km\", \"kn\", \"ko\", \"la\", \"lb\", \"ln\", \"lo\", \"lt\", \"lv\", \"mg\", \"mi\", \"mk\", \"ml\", \"mn\", \"mr\", \"ms\", \"mt\", \"my\", \"ne\", \"nl\", \"nn\", \"no\", \"oc\", \"pa\", \"pl\", \"ps\", \"pt\", \"ro\", \"ru\", \"sa\", \"sd\", \"si\", \"sk\", \"sl\", \"sn\", \"so\", \"sq\", \"sr\", \"su\", \"sv\", \"sw\", \"ta\", \"te\", \"tg\", \"th\", \"tk\", \"tl\", \"tr\", \"tt\", \"uk\", \"ur\", \"uz\", \"vi\", \"yi\", \"yo\", \"zh\"]\n",
Expand All @@ -108,8 +108,8 @@
"# @markdown <p dir=\"rtl\">(اختياري) أقصى مدة للتقطيع والتي ستؤثر على طول الجمل في ملف SRT</p>\n",
"max_cutting_duration = 15 # @param {type:\"slider\", min:1, max:17, step:1}\n",
"\n",
"if model == 'large-v2 (\\u0623\\u0641\\u0636\\u0644 \\u062F\\u0642\\u0629)':\n",
" model = 'large-v2'\n",
"if model == 'large-v3 (\\u0623\\u0641\\u0636\\u0644 \\u062F\\u0642\\u0629)':\n",
" model = 'large-v3'\n",
"elif model == 'tiny (\\u0623\\u0642\\u0644 \\u062F\\u0642\\u0629)':\n",
" model = 'tiny'\n",
"\n",
Expand Down
21 changes: 11 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "tafrigh"
version = "1.1.3"
version = "1.1.4"
description = "تفريغ النصوص وإنشاء ملفات SRT و VTT باستخدام نماذج Whisper وتقنية wit.ai."
readme = "README.md"
license = { file = "LICENSE" }
Expand All @@ -20,24 +20,25 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
authors = [{ name = "الكتب المٌيسّرة", email = "[email protected]" }]
keywords = ["tafrigh", "speech-to-text", "wit.ai", "whisper"]
dependencies = ["tqdm==4.65.1", "yt-dlp==2023.7.6"]
dependencies = ["tqdm>=4.66.4", "yt-dlp>=2024.4.9"]

[project.optional-dependencies]
wit = [
"auditok==0.2.0",
"numpy==1.23.5",
"pydub==0.25.1",
"requests==2.31.0",
"scipy==1.11.1",
"auditok>=0.2.0",
"numpy>=1.26.4",
"pydub>=0.25.1",
"requests>=2.32.0",
"scipy>=1.13.0",
]
whisper = [
"faster-whisper==0.10.0",
"openai-whisper==20231117",
"stable-ts==2.13.4",
"faster-whisper>=1.0.2",
"openai-whisper>=20231117",
"stable-ts>=2.17.2",
]

[project.urls]
Expand Down

0 comments on commit f9df943

Please sign in to comment.