You can try the Demo with CPU here:
## InstallationFollow these steps to install and run the chatbot on your local machine:
-
Open a terminal or command prompt.
-
Create a virtual environment using Python's built-in
venv
module with the following command:- On macOS and Linux:
python3 -m venv chatbot
- On Windows:
python -m venv chatbot
This command creates a new directory named 'chatbot'. Feel free to choose a different name if you prefer.
-
Create a new conda environment, install CLI app, and activate the environment.
conda create -n mlc-chat-venv -c mlc-ai -c conda-forge mlc-chat-cli-nightly conda activate mlc-chat-venv
-
Activate the virtual environment with the following command:
-
On macOS and Linux:
source chatbot/bin/activate
-
On Windows:
.\chatbot\Scripts\activate
You will know the virtual environment is activated when its name appears in your command prompt.
-
Once the virtual environment is activated, install the necessary packages with the following command:
pip install -r requirements.txt
After all the packages have been installed, you can run the app with the following command:
streamlit run app.py
Enjoy interacting with the Llama 2 ChatBot!