Skip to content

Commit

Permalink
bhai
Browse files Browse the repository at this point in the history
  • Loading branch information
theSoberSobber committed Mar 1, 2024
1 parent de955ff commit 417aaf6
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 15 deletions.
43 changes: 28 additions & 15 deletions .github/workflows/gen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,34 +12,47 @@ jobs:
runs-on: ubuntu-latest

steps:
# Install essential packages
- name: Install essential packages
run: |
sudo apt-get update
sudo apt-get install -y build-essential
sudo apt-get install -y cmake
sudo apt-get install -y make
sudo apt-get install -y g++
# Checkout repository recursively
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: 'recursive'

# Change directory to whisper submodule and build it
- name: Build whisper submodule
run: |
cd lib/whisper
cmake -B build
cmake --build build
# Move the main binary to the root of the project
- name: Move main binary to project root
run: |
mv lib/whisper/build/bin/main .
# Set up Python and install Python dependencies
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x' # You can specify a specific Python version here

- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y ffmpeg
sudo apt-get install -y libmagick++-dev
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install moviepy pytube gtts
# Make downloader.sh and generate.sh scripts executable
- name: Make scripts executable
run: |
chmod +x models/downloader.sh
chmod +x generate.sh
# Run downloader.sh script
- name: Run downloader.sh
run: ./models/downloader.sh large-v1
# Make the generate.sh script executable
- name: Make script executable
run: chmod +x generate.sh

# Generate the video using the provided text script
- name: Generate Video
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ final_video_with.mp4
models/*
!models/downloader.sh
output/*
main
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "lib/whisper"]
path = lib/whisper
url = https://github.com/ggerganov/whisper.cpp
1 change: 1 addition & 0 deletions lib/whisper
Submodule whisper added at 25d313

0 comments on commit 417aaf6

Please sign in to comment.