This project aims to recommend songs for TikTok videos by leveraging the power of OpenAI and the TikTok API. It analyzes the content of a TikTok video to generate relevant hashtags using OpenAI, and then uses these hashtags to pull popular sounds from the TikTok platform. Additionally, the project scrapes the TikTok Creative Center to gather the most popular sounds on TikTok in general. The resulting recommendations are then displayed on the frontend.
- Video Analysis with OpenAI: Analyze the content of a TikTok video to generate relevant hashtags.
- TikTok Sound Recommendations: Use the Unofficial TikTok API to pull popular sounds based on the generated hashtags.
- User-friendly Frontend: Display recommended sounds on an easy-to-use frontend interface.
-
Clone the Repository:
git clone <your-repository-url> cd <your-repository-name>
-
Install Dependencies:
pip install -r requirements.txt
-
Configure Environment Variables:
- Add your OpenAI API key to the
.envfile:OPENAI_API_KEY=your_openai_api_key
- Add your OpenAI API key to the
-
Start the Server:
./start_server.sh
Once the server is running, you can interact with the application through the frontend. Upload a TikTok video, and the system will analyze it to generate hashtags and recommend popular sounds accordingly. Additionally, you can explore the most popular sounds on TikTok.
Feel free to submit issues or pull requests if you have suggestions or improvements for the project.
By following these instructions, you should be able to set up and run the song recommendation system for TikTok videos. If you encounter any issues or have questions, please open an issue on the repository. Enjoy your song recommendations!
Check our project on Devpost.
Watch the video below to see a demonstration of the project:
