The Blog Post Writing AI is a Python-based application that utilizes the Gemini-1.5-flash large language model, along with the Google Generative AI and Streamlit libraries, to generate high-quality blog content for users. This project aims to provide a convenient and efficient way for users to create engaging blog posts with minimal effort.
- Blog Title and Keyword Input: Users can input the desired blog title and keywords, which the AI will use to generate the blog content.
- Word Length Customization: Users can adjust the length of the generated blog post, ranging from 250 to 1000 words, to suit their needs.
- Streamlit-based User Interface: The application is built using the Streamlit framework, providing a user-friendly and interactive web-based interface.
Untitled.video.-.Made.with.Clipchamp.mp4
To run the Blog Post Writing AI on your local computer, follow these steps:
-
Clone the Repository:
git clone https://github.com/your-username/blog-post-writing-ai.git
-
Install the Required Dependencies:
cd blog-post-writing-ai pip install -r requirements.txt
-
Set up the API Keys:
- Obtain the Google Gemini API key and the OpenAI API key.
- Create a new file named
appapikey.py
in the project directory. - Add the following lines to the file, replacing the placeholders with your actual API keys:
google_gemini_api_key = "your-google-gemini-api-key" openai_api_key = "your-openai-api-key"
-
Run the Application:
streamlit run app.py
This will launch the Streamlit application, and you can access it in your web browser at
http://localhost:8501
.
- In the Streamlit application, you will see the "Blog Details" section in the sidebar.
- Enter the desired blog title and keywords (separated by commas) in the respective input fields.
- Adjust the length of the blog post using the slider.
- Click the "Generate Blog" button to generate the blog content.
- The generated blog post will be displayed on the main page of the application.
The Blog Post Writing AI does not provide any API endpoints. It is a standalone Streamlit application that generates blog content based on user input.
If you would like to contribute to the development of the Blog Post Writing AI, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your changes to your forked repository.
- Submit a pull request to the main repository.
This project is licensed under the MIT License.