From 82ff165d8ab7ca2b56b6e6dbbd8c7bc46e8fb780 Mon Sep 17 00:00:00 2001 From: Ali Hamdi Ali Fadel Date: Wed, 26 Jun 2024 23:24:22 +0000 Subject: [PATCH] Install openai-whisper from pypi instead of github --- .devcontainer/Dockerfile | 2 +- README.md | 2 ++ poetry.lock | 15 +++++---------- pyproject.toml | 14 +++++++------- 4 files changed, 15 insertions(+), 18 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 8886e95..6350bd7 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1 +1 @@ -FROM mcr.microsoft.com/vscode/devcontainers/base:ubuntu-22.04 +FROM --platform=linux/amd64 mcr.microsoft.com/vscode/devcontainers/base:ubuntu-22.04 diff --git a/README.md b/README.md index d3618a8..ac182ff 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,8 @@
  • قم بتنفيذ الأمر التالي لتثبيت تفريغ: poetry install
  • +أضف -E wit أو -E whisper لتحديد الاعتماديات المراد تثبيتها. +

    استخدام تفريغ

    الخيارات المتوفرة

    diff --git a/poetry.lock b/poetry.lock index a9b47ed..8b4103d 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1119,8 +1119,9 @@ version = "20231117" description = "Robust Speech Recognition via Large-Scale Weak Supervision" optional = false python-versions = ">=3.8" -files = [] -develop = false +files = [ + {file = "openai-whisper-20231117.tar.gz", hash = "sha256:7af424181436f1800cc0b7d75cf40ede34e9ddf1ba4983a910832fcf4aade4a4"}, +] [package.dependencies] more-itertools = "*" @@ -1129,17 +1130,11 @@ numpy = "*" tiktoken = "*" torch = "*" tqdm = "*" -triton = {version = ">=2.0.0,<3", markers = "platform_machine == \"x86_64\" and sys_platform == \"linux\" or sys_platform == \"linux2\""} +triton = ">=2.0.0,<3" [package.extras] dev = ["black", "flake8", "isort", "pytest", "scipy"] -[package.source] -type = "git" -url = "https://github.com/openai/whisper.git" -reference = "HEAD" -resolved_reference = "ba3f3cd54b0e5b8ce1ab3de13e32122d0d5f98ab" - [[package]] name = "packaging" version = "24.1" @@ -1973,4 +1968,4 @@ wit = ["auditok", "pydub", "requests"] [metadata] lock-version = "2.0" python-versions = ">=3.11, <3.12" -content-hash = "f9579a55e4bb31ebd5601224a4fff117958a66dda8819a72aa03b2c0af0a7bdc" +content-hash = "dae9df79230e1c26b891a43c7752beeb543835418ae8c2e76039e0b5e054a8f1" diff --git a/pyproject.toml b/pyproject.toml index e9f4008..8807c6a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "tafrigh" -version = "1.2.0" +version = "1.2.1" description = "تفريغ النصوص وإنشاء ملفات SRT و VTT باستخدام نماذج Whisper وتقنية wit.ai." authors = ["EasyBooks "] license = "MIT" @@ -25,12 +25,12 @@ repository = "https://github.com/ieasybooks/tafrigh" python = ">=3.11, <3.12" tqdm = ">=4.66.4" yt-dlp = ">=2024.4.9" -auditok = {version = ">=0.2.0"} -pydub = {version = ">=0.25.1"} -requests = {version = ">=2.32.0"} -faster-whisper = {version = ">=1.0.2"} -openai-whisper = {git = "https://github.com/openai/whisper.git"} -stable-ts = {version = ">=2.17.2"} +auditok = ">=0.2.0" +pydub = ">=0.25.1" +requests = ">=2.32.0" +faster-whisper = ">=1.0.2" +stable-ts = ">=2.17.2" +openai-whisper = ">=20231117" [tool.poetry.extras] wit = ["auditok", "pydub", "requests"]