Ch01 Chainlit

7/4/2024 LLMs

# Chainlit(UI for chat LLM)

ref: https://github.com/Chainlit/chainlit

pip install chainlit

chainlit --help # Auto create a config file 

chainlit hello # create a welcome page
1
2
3
4
5
  1. Create a app.py in the project

  2. chainlit run app.py -w # hot loading
    
    1
  3. Call the model

    1. URL + access token
    2. Deploy locally

Check my skeleton repo here:

Last Updated: 11/19/2024, 1:54:38 PM