This is an experimental Streamlit chatbot app built for LLaMA2 (or any other LLM). The app includes session chat history and provides an option to select multiple LLaMA2 API endpoints on Replicate.
Live demo: LLaMA2.ai
For the LLaMA2 license agreement, please check the Meta Platforms, Inc official license documentation on their website. More info.
python -m venv .venv and activate it with source .venv/bin/activatepip install -r requirements.txthttp://localhost:8501 and set Allowed Callback URLs to http://localhost:8501/component/auth0_component.login_button/index.htmlhttps://<your_domain> and set Allowed Callback URLs to http://<your_domain>/component/auth0_component.login_button/index.html.env file with the command cp .env_template .env. Then edit the .env file and add your:REPLICATE_API_TOKENAUTH0_CLIENTIDAUTH0_DOMAIN.env_template filestreamlit run llama2_chatbot.py(Note: if you are using a Mac, you may need to use the command python3 instead of python and pip3 instead of pip)
fly launch -> this will generate a fly.toml for you automaticallyfly deploy --dockerfile Dockerfile --> this will automatically package up the repo and deploy it on fly. If you have a free account, you can use --ha=false flag to only spin up one instanceSecrets from the left hand side nav, and click on Use the Web CLI to manage your secrets without leaving your browser. Once you are on your app's web CLI, export all secrets needed. i.e export REPLICATE_API_TOKEN=your_replicate_token. Refer to .env.example file for necessary secrets. 0.9.0 (Experimental) - July 2023
This project is under development. Contributions are welcome!
This is an experimental version of the app. Use at your own risk. While the app has been tested, the authors hold no liability for any kind of losses arising out of using this application.
The app has been styled and configured for a cleaner look. Main menu and footer visibility have been hidden. Feel free to modify this to your custom application.
$ claude mcp add llama2-chatbot \
-- python -m otcore.mcp_server <graph>