Spaces:
Running
Running
Update README.md
Browse files
README.md
CHANGED
@@ -1,81 +1,89 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
Faceless Video Generator
|
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 |
-
```bash
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
-
|
80 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
- **Video Clip Duration:** Set the duration of the background video clips.
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
title: Faceless Video Generator
|
4 |
+
sdk: gradio
|
5 |
+
emoji: 🚀
|
6 |
+
colorFrom: purple
|
7 |
+
colorTo: gray
|
8 |
+
---
|
9 |
+
# Faceless Video Generator
|
10 |
+
|
11 |
+
Faceless Video Generator is an AI-powered tool for creating engaging videos from any topic. By leveraging state-of-the-art AI for script generation, text-to-speech audio synthesis, and background video matching, this project generates complete videos with minimal user input.
|
12 |
+
|
13 |
+
## Features
|
14 |
+
|
15 |
+
- **Script Generation:** Automatically generates a script based on the provided topic.
|
16 |
+
- **Audio Synthesis:** Utilizes text-to-speech technology to generate high-quality audio narration.
|
17 |
+
- **Timed Captions:** Creates captions that align with the audio for accessibility and clarity.
|
18 |
+
- **Background Video Search:** Searches and fetches suitable background video clips via video search queries.
|
19 |
+
- **Video Rendering:** Combines the synthesized audio, captions, and background visuals to produce the final video output.
|
20 |
+
- **Gradio Interface:** Provides a user-friendly interactive interface for generating videos.
|
21 |
+
|
22 |
+
## Prerequisites
|
23 |
+
|
24 |
+
- Python 3.8 or later
|
25 |
+
- [Gradio](https://gradio.app/) for the web interface
|
26 |
+
- Required Python packages listed in `requirements.txt`
|
27 |
+
|
28 |
+
## Installation
|
29 |
+
|
30 |
+
1. **Clone the Repository:**
|
31 |
+
|
32 |
+
```bash
|
33 |
+
git clone https://github.com/yourusername/Faceless-video.git
|
34 |
+
cd Faceless-video
|
35 |
+
```
|
36 |
+
|
37 |
+
2. **Create a Virtual Environment (Recommended):**
|
38 |
+
|
39 |
+
```bash
|
40 |
+
python -m venv venv
|
41 |
+
source venv/bin/activate # On Linux/macOS
|
42 |
+
venv\Scripts\activate # On Windows
|
43 |
+
```
|
44 |
+
|
45 |
+
3. **Install Dependencies:**
|
46 |
+
|
47 |
+
```bash
|
48 |
+
pip install -r requirements.txt
|
49 |
+
```
|
50 |
+
|
51 |
+
4. **API Keys:**
|
52 |
+
|
53 |
+
- This project requires API keys for various services.
|
54 |
+
- Create a `.env` file in the project root directory.
|
55 |
+
- Add your API keys to the `.env` file as follows:
|
56 |
+
|
57 |
+
```
|
58 |
+
GROQ_API_KEY=your_groq_api_key
|
59 |
+
PEXELS_API_KEY=your_pexels_api_key
|
60 |
+
```
|
61 |
+
|
62 |
+
> **Note:** Ensure you have accounts and API keys for Groq, and Pexels.
|
63 |
+
|
64 |
+
## Usage
|
65 |
+
|
66 |
+
1. **Run the Gradio Interface:**
|
67 |
+
|
68 |
+
```bash
|
69 |
+
python app.py
|
70 |
+
```
|
71 |
+
|
72 |
+
2. **Access the Interface:**
|
73 |
+
|
74 |
+
- Open your web browser and go to the address provided in the console (usually `http://localhost:7860`).
|
75 |
+
|
76 |
+
3. **Generating Videos:**
|
77 |
+
|
78 |
+
- Enter the topic for the video.
|
79 |
+
- Click the "Generate Video" button.
|
80 |
+
- The script, audio, captions, and video will be generated automatically.
|
81 |
+
- The final video will be displayed in the interface.
|
82 |
+
|
83 |
+
## Configuration
|
84 |
+
|
85 |
+
You can configure various aspects of the video generation process by modifying the parameters in the Gradio interface or directly in the Python scripts.
|
86 |
+
|
87 |
+
- **Script Length:** Adjust the length of the generated script.
|
88 |
+
- **Voice Settings:** Customize the voice used for audio synthesis.
|
89 |
- **Video Clip Duration:** Set the duration of the background video clips.
|