Using LLM through py-tgpt, this script provides simple summaries to text files and youtube videos.
| .gitignore | ||
| .python-version | ||
| pyproject.toml | ||
| README.md | ||
| summarize.py | ||
| uv.lock | ||
tgpt summarize
A simple script which uses LLM to summarize a local text file, a downloaded json3 subtitle transcript, or a direct youtube video link.
Requires yt-dlp for youtube summaries, and jq for local json3 subtitle summaries.
Simplest usage:
tgpt_summary.py --youtube "https://www.youtube.com/watch?v=FuvDa0gs-ks"
First grabs the (english only, for now) subtitles and then tries to summarize them.