Summarise your video lecture with AI! Turn long boring video to point-form notes!
This repository contains the source code for gptLecture, a submission for iNTUition v9.0 from Team Bang2Theory.
- Get your video lecture Youtube link. (We assume that most recorded lectures are uploaded to Youtube).
- Give the Youtube link to gptLecture. gptLecture will download the video, then process the transcripts from the video.
- The transcript will then be processed, and we used prompt engineering to ask for OpenAI’s ChatGPT to perform summarisation of the video.
- The summary is in point form, and converted it into a PDF file for you to download!
git clone
this repositorypip install -r requirements.txt
- Supply your OpenAI API key into a new
.toml
file. Or edit line 3 ofprompt_engineering.py
. The API key is available over here. streamlit run main.py
get_youtube_video.py
: Download the Youtube video, metadata and transcript.vtt_processor.py
: Process the downloaded transcript file (.vtt) into paragraph of texts.prompt_engineering.py
: Supply texts for OpenAI's Text Completion API to obtain the summary.main.py
: The main flow of the code, powered by Streamlit.