LLaMe NEWS is an AI-powered tool that extracts audio from YouTube videos, transcribes the content using OpenAI Whisper, and generates well-structured news articles using OpenAI's GPT-3.5 Turbo. The project provides an interactive web interface built with Streamlit, making it easy to use.
- 🎥 Download and extract audio from YouTube videos
- 📝 Generate accurate transcripts using OpenAI Whisper
- 📰 Convert transcripts into structured news articles
- 💻 Streamlit-based UI for seamless interaction
- 📂 Downloadable transcript and article files in a ZIP format
Before setting up the project, ensure you have the following installed:
- Python 3.8+
- pip or pip3 (Python package manager)
- Virtual environment (recommended)
- OpenAI API Key
git clone <your-repository-url>
cd <your-repository-folder>
python3 -m venv venv
source venv/bin/activate
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
export OPENAI_API_KEY="your-api-key-here"
$env:OPENAI_API_KEY="your-api-key-here"
Alternatively, create a .env
file in the root directory and add:
OPENAI_API_KEY=your-api-key-here
streamlit run main.py
- 🔗 Enter a YouTube video URL in the input field.
- ✅ Click the checkbox to start the analysis.
- ⏳ Wait for the audio extraction and transcription.
- 📰 The generated news article will appear on the screen.
- 📥 Download the transcript and article as a
.zip
file.
- Missing Dependencies? Run
pip install -r requirements.txt
again. - API Key Not Found? Ensure it's set in the environment or
.env
file. - Streamlit Not Running? Check for errors and ensure you activated the virtual environment.
- 🐍 Python (Core Programming Language)
- 🌐 Streamlit (Web Framework for UI)
- 🤖 OpenAI GPT-3.5 Turbo (Article Generation)
- 🎙 OpenAI Whisper (Audio Transcription)
- 📹 PytubeFix (YouTube Audio Extraction)
This error occurs when YouTube detects automated access to its content and blocks the request. This issue is common with pytubefix
, as YouTube regularly updates its bot detection mechanisms.
Best Possible workaround: Tap the Start Analysis checkbox multiple times, it somehow bypasses and allows the URL.
Other possible workarounds include:
- Using a VPN or proxy to change your IP address.
- Implementing a delay between requests to mimic human behavior.
- Using an alternative method for downloading YouTube audio, such as
yt-dlp
. - Updating
pytubefix
to the latest version to check for fixes.
This issue is currently being investigated for a more permanent solution.
This project is licensed under the MIT License.
Hetav a.k.a GodSpeed
🚀 Enjoy using LLaMe NEWS and revolutionize news generation! 📰✨