A powerful content generation system that creates platform-specific content using AI for blogs, social media, and professional networks.
- Multi-platform content generation (Blog, Twitter, LinkedIn, Instagram)
- Custom tone and audience targeting
- User-friendly web interface
- Downloadable content in text format
- Real-time content preview
- Docker containerization
- Multiple LLM support (OpenAI, Mistral)
- AI-generated images integration
- Company profile management
- Enhanced content personalization
- Python 3.9+
- Streamlit
- LangChain
- OpenAI API
- Stability AI
- Docker
- Python 3.9 or higher
- Docker (for containerized deployment)
- OpenAI API key
- Stability AI API key (for image generation)
- Clone the repository:
git clone https://github.com/yourusername/digital-content-generator.git
cd digital-content-generator
- Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Create a
.env
file in the root directory:
OPENAI_API_KEY=your_openai_api_key
STABILITY_API_KEY=your_stability_api_key
- Run the application:
streamlit run src/app.py
- Build the Docker image:
docker build -t content-generator .
- Run the container:
docker run -p 8501:8501 --env-file .env content-generator
- Access the application at
http://localhost:8501
- Select your target platform (Blog, Twitter, LinkedIn, or Instagram)
- Enter your topic, target audience, and desired tone
- Click "Generate Content" to create your content
- Download or copy the generated content
project_content/
├── src/
│ ├── generators/
│ │ ├── __init__.py
│ │ ├── content_generator.py
│ │ ├── prompt_manager.py
│ │ ├── image_generator.py
│ │ └── llm_manager.py
│ ├── utils/
│ │ ├── __init__.py
│ │ └── constants.py
│ └── app.py
├── .env
├── Dockerfile
├── requirements.txt
└── README.md
OPENAI_API_KEY
: Your OpenAI API keySTABILITY_API_KEY
: Your Stability AI API keyPORT
: Port for the Streamlit application (default: 8501)
- Blog posts
- Twitter/X threads
- LinkedIn articles
- Instagram posts
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- OpenAI for providing the GPT models
- Stability AI for image generation capabilities
- LangChain for the LLM framework
- Streamlit for the web interface framework
Your Name - [email protected] Project Link: https://github.com/yourusername/digital-content-generator
-
API Key Issues
- Ensure all API keys are correctly set in the
.env
file - Check API key permissions and quotas
- Ensure all API keys are correctly set in the
-
Docker Issues
- Ensure Docker daemon is running
- Check port availability
- Verify environment variables are properly passed
-
Content Generation Issues
- Check internet connectivity
- Verify API quotas haven't been exceeded
- Ensure input parameters are properly formatted