Welcome to the AI-Powered Content Generator! This project is designed to help you create high-quality articles, blog posts, and other types of content using cutting-edge large language models (LLMs). By simply providing a keyword or topic, the generator crafts relevant and engaging content in seconds.
- Overview
- Features
- Technologies Used
- Installation
- Configuration
- Usage
- Project Structure
- Deployment
- Contributing
- License
- Acknowledgments
This AI-powered content generator leverages Cohere's large language model API to generate high-quality content from simple inputs. The app is built using Python and deployed on Streamlit Cloud, making it accessible through a web interface. You can interact with the app here: AI-Powered Content Generator
-
Content Generation: Automatically generates articles and blog posts based on user input.
-
Customizable Output: Define parameters such as keywords, tone, and length to tailor the generated content.
-
Web Deployment: Deployable on Streamlit Cloud for easy access.
-
User-Friendly Interface: Simple and intuitive front-end built with Streamlit.
-
Python: Main programming language.
-
Streamlit: Used to build the web interface.
-
Cohere API: Provides the large language model for text generation.
-
GitHub: Version control and code hosting.
To run this project locally, follow the steps below:
- Clone the repository:
$ git clone https://github.com/aljebraschool/Build-Your-Own-AI-Powered-Content-Generator.git
$ cd Build-Your-Own-AI-Powered-Content-Generator
- Create a virtual environment:
# On Linux/Mac:
$ python3 -m venv venv
# On Windows:
$ python -m venv venv
- Activate the virtual environment:
# On Linux/Mac:
$ source venv/bin/activate
# On Windows:
$ venv\Scripts\activate
- Install dependencies:
$ pip install -r requirements.txt
-
Setting Up the API Key
-
Create a folder named .streamlit in the project directory.
-
Inside the .streamlit folder, create a file named secrets.toml.
-
Add the following line to secrets.toml:
[api_keys]
cohere_api_key = "your_cohere_api_key_here"
Replace your_cohere_api_key_here with your actual Cohere API key.
- Run the application:
$ streamlit run app.py
-
Access the app in your browser at http://localhost:8501.
-
Enter the desired keyword or topic and click the "Generate" button to create content.
Build-Your-Own-AI-Powered-Content-Generator/
│
├── app.py # Main application logic
├── requirements.txt # Project dependencies
├── .streamlit/ # Configuration folder
│ └── secrets.toml # API key storage
├── .gitignore # Files to ignore in version control
└── README.md # Project documentation
- Push the project to GitHub:
$ git add .
$ git commit -m "Initial commit"
$ git push origin master
-
Log in to Streamlit Cloud and connect your GitHub account.
-
Click on "New App" and select the repository.
-
In "Advanced Settings," paste the contents of your secrets.toml directly.
-
Click "Deploy." Your app will be live and accessible via a public URL.
Contributions are welcome! If you'd like to contribute, please fork the repository, create a new branch, and submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
Special thanks to Cohere for providing the language model API.
Inspired by the need to simplify content creation with AI.