File size: 1,288 Bytes
5d2e47d
400d937
 
 
5d2e47d
 
f9076a1
1b20d8b
5d2e47d
 
 
 
400d937
 
 
 
 
 
 
1b20d8b
400d937
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
title: MoneyPrinterV2 - YouTube Shorts Generator
emoji: 🎬
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: "5.12.0"
python_version: "3.12"
app_file: app.py
pinned: false
---

# MoneyPrinterV2 β€” YouTube Shorts Generator

AI-powered YouTube Shorts video generation pipeline:

1. **Topic Generation** β€” LLM generates a video topic from your niche
2. **Script Writing** β€” LLM writes a short video script
3. **Image Generation** β€” Gemini API creates visuals from AI prompts
4. **Text-to-Speech** β€” Edge TTS converts script to natural speech
5. **Subtitle Generation** β€” faster-whisper creates synced subtitles
6. **Video Assembly** β€” MoviePy combines everything into a downloadable MP4

## Required Secrets

Set these in your Space Settings > Secrets:

| Secret | Description |
|--------|-------------|
| `HF_TOKEN` | Hugging Face API token (for LLM text generation) |
| `GEMINI_API_KEY` | Google Gemini API key (for AI image generation) |

## Usage

1. Enter a niche/topic (e.g., "artificial intelligence", "cooking tips")
2. Select language, LLM model, TTS voice, and script length
3. Click "Generate Video"
4. Download the generated MP4

> **Note:** This demo generates videos only. YouTube upload requires browser automation and is not available on HF Spaces.