Skip to content

misharigot/chappy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chappy

Automatic video chapterization.

Usage

usage: app.py [-h] [--word-count WORD_COUNT] [--chapters CHAPTERS]

Chapterize a YouTube video.

optional arguments:
  -h, --help            show this help message and exit
  --word-count WORD_COUNT, -w WORD_COUNT
                        Number of words in the summary for each section.
  --chapters CHAPTERS, -c CHAPTERS
                        Number of chapters to return.

Running in a Docker container

The following describes how to run the app in a Docker container by first building the image from the Dockerfile.

  1. Build the container

    cd path/to/chappy
    docker build -t chappy .
  2. Run the container and run the app

    docker run -it chappy bash
    
    # Inside the container
    $ poetry run python3 src/app.py 

Development guide

You can re-use the above container and simply mount your locally checked-out repository.

  1. Build the container.

    docker build -t chappy .
  2. Download the punctuator model locally, since it will be mounted in the next step:

    ./download_models.sh
  3. Run the container in the background and mount the local repo.

    docker run -dit -v /path/to/chappy:/app/chappy chappy:latest bash
  4. Get into the container's shell.

    docker exec -it <container-name> bash
  5. Run it or run the tests.

    poetry run python3 src/app.py
    poetry run pytest

Adding packages to your env

Use poetry for this. Example:

poetry add pandas

About

Automatic video chapterization.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •