A Streamlit web application that generates blog content using Hugging Face's AI models.
- Generate blog posts on any topic
- Customize word count and content style
- Choose from different AI models
- Download generated content as text files
-
Clone the repository:
git clone https://github.com/yourusername/ai-blog-generator.git cd ai-blog-generator -
Install dependencies:
pip install -r requirements.txt -
Create a
.envfile in the project root and add your Hugging Face API key:HUGGING_FACE_API_KEY=your_api_key_here
Run the Streamlit app:
streamlit run app.py
The application will open in your default web browser. From there:
- Enter your blog topic
- Select desired word count
- Choose a content style and model
- Click "Generate Blog"
This app can be deployed on various platforms:
- Push your code to GitHub (make sure the
.envfile is in your.gitignore) - Deploy on Streamlit Cloud
- Add your API key in the Streamlit Cloud secrets management
- Create a Heroku app
- Set environment variables in Heroku settings
- Deploy from GitHub
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.streamlit run app.py