You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This backend application is built using FastAPI and is designed to generate videos based on user-defined topics and backgrounds. It integrates multiple AI services for text generation, audio synthesis, image creation, and subtitle generation. The application handles various tasks, including cleaning text, formatting subtitles, and generating video files using FFmpeg.
5
+
6
+
## Project Overview
7
+
This project is aimed at generating videos using AI technologies. It leverages advanced algorithms to create high-quality video content based on user inputs.
8
+
9
+
## Frontend Description
10
+
The frontend of this project is built using modern web technologies including React.js for a dynamic user experience. The interface is designed to be intuitive, allowing users to easily input their preferences and view the generated videos. Key features include:
11
+
-**Responsive Design**: The application is fully responsive, ensuring a seamless experience on both desktop and mobile devices.
12
+
-**Real-time Preview**: Users can see a real-time preview of their video as they adjust settings.
13
+
-**User-Friendly Interface**: The layout is clean and organized, making navigation simple.
14
+
15
+
## Installation Instructions
16
+
### Backend Installation
17
+
1. Clone the repository:
18
+
```bash
19
+
git clone https://github.com/LohiyaH/VidCraft
20
+
cd shorty
21
+
```
22
+
2. Install the required dependencies:
23
+
```bash
24
+
pip install -r backend/requirements.txt
25
+
```
26
+
3. Set up environment variables in a `.env` file:
27
+
```
28
+
GEMINI_API_KEY=<your-gemini-api-key>
29
+
ELEVENLABS_API_KEY=<your-elevenlabs-api-key>
30
+
HUGGINGFACE_API_KEY=<your-huggingface-api-key>
31
+
```
32
+
33
+
### Frontend Installation
34
+
To set up the frontend, follow these steps:
35
+
1. Navigate to the frontend directory: `cd frontend`
36
+
2. Install dependencies: `npm install`
37
+
3. Start the application: `npm start`
38
+
39
+
## Usage
40
+
### Backend Usage
41
+
1. Run the FastAPI application:
42
+
```bash
43
+
uvicorn backend.main:app --reload
44
+
```
45
+
2. Access the API documentation at `http://localhost:8000/docs`.
46
+
47
+
### Frontend Usage
48
+
Once the application is running, users can input their video preferences in the provided fields and click on the 'Generate Video' button to create their AI-generated video. The results will be displayed in the preview section.
49
+
50
+
## API Endpoints
51
+
-**POST**`/api/generate-video`
52
+
-**Request Body**:
53
+
```json
54
+
{
55
+
"topic": "string",
56
+
"background": "string"
57
+
}
58
+
```
59
+
- **Response**:
60
+
```json
61
+
{
62
+
"videoUrl": "string"
63
+
}
64
+
```
65
+
66
+
- **GET** `/api/test`
67
+
- Returns a simple test message.
68
+
69
+
[Watch the video](https://drive.google.com/file/d/1WjUGrYiH2_ghVuXiveTgCI0QvJksH7Dc/view?usp=sharing)
70
+
71
+
## Contributing
72
+
Contributions are welcome! Please open an issue or submit a pull request.
0 commit comments