Using the advanced Llama 2 7B Chat model by Meta, this project offers a seamless experience for generating high-quality blogs with just a few clicks.
- AI-Powered Blog Generation: Utilize the Llama 2 7B Chat model to generate compelling blog content.
- Customizable Writing Styles: Choose from various writing styles including Fun, General, and Professional.
- Word Count Specification: Define the number of words for each blog post.
- User-Friendly Interface: Interact easily through a Streamlit-based web interface.
Before you begin, ensure you have met the following requirements:
- Python 3.8 or higher
- Streamlit
- langchain
- langchain_community
- ctransformers
To set up the project locally, follow these steps:
-
Create a Virtual Environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install Dependencies:
pip install -r requirements.txt
-
Download the Llama 2 7B Chat Model: Ensure the model file
llama-2-7b-chat.ggmlv3.q8_0.bin
is downloaded and placed in the appropriate directory.
To start the application:
-
Run the Streamlit App:
streamlit run app.py
-
Access the Web Interface
-
Generate Blog Content:
- Enter the topic name.
- Specify the number of words.
- Select the writing style (Fun, General, Professional).
- Click on "Generate" to produce the blog post.
We welcome contributions! If you would like to contribute, please fork the repository and create a pull request. For significant changes, consider opening an issue to discuss your ideas.
- Meta for the Llama 2 model.
- The developers of
streamlit
,langchain
,langchain_community
, andctransformers
.