ScriptCraft is an AI-powered YouTube script generator that helps content creators quickly generate engaging video scripts. Built with LangChain and Streamlit, it combines the power of OpenAI's language models with Wikipedia research to create well-structured and informative video scripts.
- AI-Powered Script Generation: Generate complete YouTube scripts with just a topic
- Smart Title Suggestions: Get creative title ideas for your videos
- Wikipedia Integration: Automatically includes relevant research in the script
- Customizable Creativity: Adjust the AI's creativity level
- Responsive Design: Works on both desktop and mobile devices
- Python 3.8 or higher
- OpenAI API key
- pip (Python package manager)
-
Clone the repository
git clone https://github.com/your-username/YouTube-Script-Generator.git cd YouTube-Script-Generator
-
Create a virtual environment (recommended)
python -m venv venv source venv/bin/activate # On Windows: .\venv\Scripts\activate
-
Install dependencies
pip install -r requirements.txt
-
Set up environment variables
- Copy
.env.example
to.env
- Add your OpenAI API key to the
.env
file
OPENAI_API_KEY=your_api_key_here
- Copy
-
Run the application
streamlit run langchain/app.py
-
Open your browser and go to
http://localhost:8501
-
Enter your video topic in the text area and click "Generate Script"
-
Adjust settings in the sidebar to customize the output
Input:
How to start a successful tech blog
Output:
- Title: "The Ultimate Guide to Launching a Profitable Tech Blog in 2023"
- Script: [Generated script with introduction, main points, and conclusion]
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.