This is a Chainlit app that uses the Anthropic API to generate text.
git clone https://github.com/catid/chainlit-anthropic.git
cd chainlit-anthropic
conda create -n chat python=3.10 -y && conda activate chat
pip install -r requirements.txt
Create a .env
file with your Anthropic API key:
echo "ANTHROPIC_API_KEY=your_api_key" > .env
Run the app:
chainlit run chat.py
Browse to http://localhost:8000
in your web browser.
Type your message in the chat window and press enter. The app will generate a response using the Anthropic API.