Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ai-naymul/blog-generation-llama-2
https://github.com/ai-naymul/blog-generation-llama-2
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ai-naymul/blog-generation-llama-2
- Owner: ai-naymul
- Created: 2024-05-08T18:15:47.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-06-01T08:16:18.000Z (7 months ago)
- Last Synced: 2024-06-01T09:31:55.891Z (7 months ago)
- Language: Python
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Blog Generator App
## Overview
This application utilizes the LLaMA 2 model to generate blog posts based on user input. It is built using Streamlit and leverages the `langchain` library for prompt engineering and model interaction.## Features
- **Interactive UI**: Built with Streamlit, providing a user-friendly interface.
- **Customizable Blog Generation**: Users can specify the blog topic, the number of words, and the style of the blog (e.g., for Researchers, Data Scientists, or Common People).## Installation
To run this application, you need to install the required dependencies listed in `requirements.txt`.```bash
pip install -r requirements.txt
```## Usage
Start the application by running the following command:```bash
streamlit run app.py
```Navigate to the provided local URL in your web browser to interact with the application.
## How It Works
1. **Input Blog Details**: Enter the topic, number of words, and select the blog style.
2. **Generate Blog**: Click the "Generate" button to produce the blog content.The backend logic utilizes the `CTransformers` model from the `langchain` library to generate responses based on the provided prompts.
## Code Structure
- `main.py`: Contains the Streamlit application setup and blog generation logic.
- `requirements.txt`: Lists all the necessary Python libraries.Refer to the `main.py` for detailed implementation:
```python
python main.py
```## License
This project is licensed under the MIT License - see the LICENSE file for details.