Gemini is a Python-based tool that generates social media posts using Google's GenerativeAI. The tool provides a streamlined interface to create engaging Facebook posts with customizable templates.
-
Google GenerativeAI Integration: Utilizes the power of Google GenerativeAI to generate creative and engaging social media posts.
-
Flexible Templates: Offers two customizable templates for generating Facebook posts, allowing you to tailor the content to your specific topic.
-
Image Integration: Retrieves relevant images from Unsplash to complement your generated post.
-
Text Overlay on Images: Enhances generated images by overlaying text at specified positions with customizable settings.
-
Clone the Repository:
git clone https://github.com/MuhammadShahzeb123/Instagram-Post-Generator.git cd Instagram-Post-Generator -
Install Python: Ensure that you have Python installed on your system. If not, you can download it from python.org.
-
Install Dependencies:
pip install -r requirements.txt
-
API Key Configuration: Obtain your Google GenerativeAI API key from Google Maker Suite and replace
YOU_API_KEYinfunctions.pywith your actual API key. -
Unsplash API Key: Replace
YOUR_UNSPLASH_API_KEYinfunctions.pywith your Unsplash API key.
-
Run the application using:
streamlit run app.py
-
Enter a topic and click the "Get the Post" button to generate a Facebook post.
-
Adjust the sliders and color picker to overlay text on the generated image.
-
View the final output and the post text.
Here's an example usage of Gemini to create a Facebook post:
python app.py