Automate the creation tiktoks with the power of AI
-
Car Edits: @autofusionedits
-
Anime Edits: @animemosaic
-
Reddit Stories: @narrativenxt
Goal of this project is to generate tiktok videos that will be posted daily to different accounts and hopefully over time create small passive income through tiktok creator fund.
sub-script functions:
- generates a video prompt for a deform video using OpenAI's GPT-3 engine.
- sends the generated prompt to a local Stable Diffusion WebUI server to perform a Deform operation.
- Python 3.x
requests
library for API interactionopenai
library for GPT-3 API
- Clone this repository.
- Run
pip install -r requirements.txt
to install dependencies.
You'll need to set your OpenAI API key in the script:
openai.api_key = "your-openai-api-key-here"
Run the script using Python 3.x:
python your_script_name.py
- The script starts the 3 scrips mainCar.py, mainAnime.py, and mainReddit.py
- It sends a prompt generated based off of the specific scripts function as a prompt to the GPT-3 engine and receives a text output from GPT.
- This text output is then sent to a Stable Diffusion WebUI server running locally via a POST request to create a cool looking stable diffusion video.
- The video is then sent to tiktok via tiktoks api and a tiktok sound is applied to the video for the mainCar.py and mainAnime.py videos and posted to their respected accounts
- the video generated from mainReddit.py takes the reddit story it was generated from and runs it through a text to speach agorithm to read the reddit story outloud and pairs that sound with the video and posts that to the reddit tiktok account
- Make sure your OpenAI API key is correct.
- Ensure the Stable Diffusion WebUI server is running and accessible.
- If you encounter a 404 error, make sure the API endpoint is correct.
This project is open-source, feel free to modify and distribute it under the terms of your preferred open-source license.
Bronson Woods