A simple YouTube video summarizer using a local AI Ollama server. This tool helps you quickly understand video content by providing AI-generated summaries, saving you time in deciding which videos to watch.
- 🎯 Simple URL Input: Just paste any YouTube video URL
- 🤖 Multiple AI Models: Choose from your locally installed Ollama models
- 🎭 Customizable Tone: Select from various summary styles:
- Professional (default)
- Funny
- Brisk
- Serious
- Gen Z
- 📝 Transcript Access: View and download the full video transcript
- 📊 Summary Generation: Get AI-generated summaries in your chosen style
- 💾 Download Options: Save both transcripts and summaries as text files
- ⚙️ Advanced Settings: Customize the AI prompt for better results
Remember that this relies on having already a running Ollama Server.
1. Clone the repo
git clone https://github.com/pleabargain/OllamaYTSumm2. Install the requirements
cd OllamaYTSumm
pip install -r requirements.txtpython -m streamlit run main.py-
URL Input
- Paste any YouTube video URL
- Default example URL provided
-
Model Selection
- Choose from available Ollama models
- Models are automatically detected from your local Ollama installation
-
Tone Selection
- Choose how you want your summary presented
- Different tones for different use cases
-
Advanced Settings
- Customize the AI prompt
- Save custom prompts for later use
- Reset to default prompt if needed
-
Results Display
- Side-by-side view of transcript and summary
- Easy-to-read format
- Download options for both transcript and summary
- Work the system prompt to get the best result possible with (hopefully) the most amount of models
- Make the script asynchronous so we can activate the Stream of the response from the server, and see it real time
- Add video thumbnail and metadata display
- Add support for multiple languages
- Add summary length options (short/medium/long)
- Add support for playlist summarization
This is a forked script. I have made some changes to the original to make it work for my needs.
Any contributions are welcome! Here are some ways you can contribute:
- Report bugs
- Suggest new features
- Improve documentation
- Submit pull requests
This project is licensed under the GPL-3.0 License - see the LICENSE file for details.