This project is a web application built with Gradio, LLaMA 2 and LangChain to generate stories.
Enter a story topic, select the genre and finally the main character. Click on the generate button and wait a while (quite a while) to get a story.
- LLaMA 7B Chat ⚛️
- Gradio 🎨
- LangChain 🤖
Follow these steps to build and run the project locally using Anaconda:
Prerequisites: Ensure you have the following software installed on your system:
- Anaconda
- Model LLaMA 2
Clone the repository: Clone the project to your local machine.
-
Create virtual env with conda:
conda create -n llama python=3.8
-
Activate virtual env:
conda activate llama
-
Install gradio: ``conda install -c conda-forge gradio```
-
Install requirements.txt:
pip install -r requirements.txt
-
Finally, run:
python app.py