-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSetup-Rosetta.py
32 lines (25 loc) · 1.15 KB
/
Setup-Rosetta.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#-------------------------------------------------------------------#
# BatchWhisper-Transcription-Translation [LOCAL & API] #
#-------------------------------------------------------------------#
# Author: SABIAN HIBBS #
# License: MIT #
# Version: 3.4 #
#-------------------------------------------------------------------#
import subprocess
import os
if __name__ == "__main__":
# Install whisper from GitHub
print("Installing whisper from GitHub...")
subprocess.run("pip install git+https://github.com/openai/whisper.git")
# Install ffmpeg
print("Installing ffmpeg...")
subprocess.run("pip install ffmpeg")
# Install openai
print("Installing openai...")
subprocess.run("pip install openai")
# Install torch for CUDA
print("Installing torch, torchvision, and torchaudio...")
subprocess.run("pip install torch torchvision torchaudio")
# Create the directories if they don't exist
if not os.path.exists('Input-Videos'):
os.mkdir('Input-Videos')