Skip to content

Commit e595dd3

Browse files
authored
build: add openai-whisper
* remove install_whisper from postinstall * poetry add openai-whisper
1 parent 5a8b9bc commit e595dd3

File tree

3 files changed

+57
-20
lines changed

3 files changed

+57
-20
lines changed

poetry.lock

Lines changed: 56 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ llvmlite = "^0.43.0"
111111
ell-ai = "^0.0.14"
112112
pynput = "^1.7.7"
113113
multiprocessing-utils = "^0.4"
114+
openai-whisper = "^20240930"
114115
[tool.pytest.ini_options]
115116
filterwarnings = [
116117
# suppress warnings starting from "setuptools>=67.3"

scripts/postinstall.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,6 @@ def install_detectron2() -> None:
2323
sys.exit(1)
2424

2525

26-
def install_whisper() -> None:
27-
"""Install Whisper from its GitHub repository."""
28-
try:
29-
subprocess.check_call(
30-
[
31-
sys.executable,
32-
"-m",
33-
"pip",
34-
"install",
35-
"git+https://github.com/openai/whisper.git",
36-
"--no-build-isolation",
37-
]
38-
)
39-
except subprocess.CalledProcessError as e:
40-
print(f"Error installing Whisper: {e}")
41-
sys.exit(1)
42-
43-
4426
def install_dashboard() -> None:
4527
"""Install dashboard dependencies based on the operating system."""
4628
original_directory = os.getcwd()
@@ -82,7 +64,6 @@ def main() -> None:
8264
"""Main function to install dependencies."""
8365
try:
8466
install_detectron2()
85-
install_whisper()
8667
install_dashboard()
8768
except Exception as e:
8869
print(f"Unhandled error: {e}")

0 commit comments

Comments
 (0)