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
"""Refine the keyword using OpenAI's ChatGPT 3.5 for better image search results."""
112
+
113
+
try:
114
+
completion=self.openai.chat.completions.create( # Async call to create chat completion
115
+
model="gpt-3.5-turbo", # Updated model name
116
+
messages=[{'role':'system','content':'You are a query generation system designed to enhance video automation. Your task is to receive phrases and generate concise queries that will help in finding suitable images for the given scene. Please create a query based on the provided phrase and the context of the video.'},{'role': 'user', 'content': f' \n Original phrase: "{keyword}" \n Video topic: {video_context}'}],
**TurboReelGPT**is your go-to tool for creating short, engaging videos for TikTok, Instagram Reels, and YouTube Shorts. Unlike other AI video generators, TurboReelGPT aims to be the first prompt-to-video model that focuses on making content feel real and engaging.
3
+
**Welcome to TurboReelGPT!**Your new buddy for creating shortvideos for TikTok, Instagram Reels, and YouTube Shorts. Unlike other AI video generators out there, we’re all about making your content feel real.
4
4
5
-
###What We’re About
5
+
## What We're About
6
6
7
7
Just like Midjourney changed the game for images, TurboReelGPT is here to transform how we make videos. Our mission is to help creators easily produce videos that connect with their audience on a human level.
8
8
9
-
-**Example YouTube Video**: Check out this [example video](https://www.youtube.com/watch?v=Dljw1VYg-g0&list=TLGG7jhQJ1_OX9gwMzEwMjAyNA) to see what you can create with TurboReelGPT.
3.**Make sure you have Python 3.10.12 installed**. You can download it from [python.org](https://www.python.org/downloads/release/python-31012/).
36
+
37
+
3.**Make Sure You’ve Got Python**: Grab Python 3.10.x from [python.org](https://www.python.org/downloads/release/python-31012/).
36
38
37
39
4.**Install FFmpeg and ImageMagick**:
38
-
-**For Windows**: You can download the binaries from the [FFmpeg](https://ffmpeg.org/download.html) and [ImageMagick](https://imagemagick.org/script/download.php) websites and add them to your system's PATH.
39
-
-**For macOS**: You can use Homebrew to install them:
40
+
-**For Windows**: Download the binaries from [FFmpeg](https://ffmpeg.org/download.html) and [ImageMagick](https://imagemagick.org/script/download.php). Just add them to your system's PATH.
41
+
-**For macOS**: Use Homebrew (if you haven’t tried it yet, now’s the time!):
40
42
```bash
41
43
brew install ffmpeg imagemagick
42
44
```
43
-
- **For Linux**: Use your package manager to install them:
45
+
- **For Linux**: Just use your package manager:
44
46
```bash
45
47
sudo apt-get install ffmpeg imagemagick
46
48
```
47
49
48
-
5. **Install the required Python packages**:
50
+
5. **Get the Required Python Packages**:
49
51
```bash
50
52
pip install -r requirements.txt
51
53
```
52
-
6. **Launch the app**:
54
+
55
+
6. **Grab Your API Keys**: You’ll need keys for OPENAI (for generating scripts) and PEXELS (for fetching images). Get your PEXELS API key [here](https://www.pexels.com/api/key/).
56
+
57
+
7. **Set Up Your Config**: Create a `config.yaml` file in the root folder. Clone `config-example.yaml`, fill it in with your API keys and desired settings.
58
+
59
+
8. **Launch the App**:
53
60
```bash
54
61
python app.py
55
62
```
56
63
57
-
### Want to Help?
64
+
**Heads Up**: This project uses YT-DLP fordownloading YouTube videos, and it needs cookies to work properly. So, automating thisin a VM might not be the best idea. Instead, download some videos manually, toss them in the assets folder, and change the "video path"in`app.py` (around line 219) to point to your downloaded videos.
65
+
66
+
## 🤗 Want to Help?
58
67
59
-
We’d love your help! If you want to contribute to TurboReelGPT, here’s what to do:
68
+
We’d love your help! If you’re excited to contribute to TurboReelGPT, here’s how you can jump in:
60
69
61
-
1. **Fork the repo**.
62
-
2. **Create a new branch**for your feature or fix.
63
-
3. **Make your changes and commit them**.
64
-
4. **Push your branch** and submit a pull request.
70
+
1. **Fork the Repo**.
71
+
2. **Create a New Branch**for your feature or fix.
72
+
3. **Make Your Changes and Commit Them**.
73
+
4. **Push Your Branch** and submit a pull request.
65
74
66
-
- **Join our Discord**: Connect with us and other creators on our [Discord server](https://discord.gg/4dnynCSN).
75
+
- **Join Our Crew**: Let’s connect! Join us and other creators on our [Discord server](https://discord.gg/4dnynCSN). We can’t wait to see what you create!
0 commit comments