An advanced script generation tool that transforms complex source material into engaging YouTube documentary scripts using AI and natural language processing.
- Intelligent text chunking and processing
- AI-powered script generation with OpenAI GPT models
- Real-time script validation and improvement
- Modern React-based editor interface
- Parallel processing of large documents
- Quality control and readability metrics
- Clone the repository:
git clone https://github.com/yourusername/script-generator.git
cd script-generator- Install Python dependencies:
pip install -r requirements.txt- Set up environment variables:
Create a
.envfile in the root directory with:
OPENAI_API_KEY=your_api_key_here
- Install frontend dependencies:
cd app/static
npm install- Start the backend server:
cd app
uvicorn api.main:app --reload- Start the frontend development server:
cd app/static
npm start- Open your browser and navigate to
http://localhost:3000
Edit app/config/llm.yaml to configure:
- Model selection
- Temperature and token limits
- System prompts
- Validation thresholds
Edit app/config/quality_control.yaml to adjust:
- Readability requirements
- Structure validation
- Style guidelines
- Coherence checks
POST /api/generate-script: Generate a new scriptGET /api/script-status/{task_id}: Check generation statusPOST /api/upload-file: Upload source materialPOST /api/validate-script: Validate script quality
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.