tpatel / chainlit-cookbook

Chainlit's cookbook repo

Home Page:https://github.com/Chainlit/chainlit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chainlit Cookbook

Welcome to the Chainlit Demos repository! Here you'll find a collection of example projects demonstrating how to use Chainlit to create amazing chatbot UIs with ease. Each folder in this repository represents a separate demo project.

πŸš€ Getting Started

To run a demo, follow these steps:

  1. Clone this repository:
    git clone https://github.com/Chainlit/cookbook.git chainlit-cookbook
    
  2. Navigate to the desired demo folder:
    cd chainlit-cookbook/demo-folder-name
    
  3. Install the required dependencies:
    pip install -r requirements.txt
    
  4. Create a .env file based on the provided .env.example file:
    cp .env.example .env
    
    Modify the .env file as needed to include any necessary API keys or configuration settings.
  5. Run the Chainlit app in watch mode:
    chainlit run app.py -w
    

Your demo chatbot UI should now be up and running in your browser!

πŸ’ Contributing

We'd love to see more demos showcasing the power of Chainlit. If you have an idea for a demo or want to contribute one, please feel free to open an issue or create a pull request. Your contributions are highly appreciated!

About

Chainlit's cookbook repo

https://github.com/Chainlit/chainlit


Languages

Language:Python 91.5%Language:TypeScript 3.9%Language:JavaScript 1.5%Language:Shell 1.0%Language:Dockerfile 0.9%Language:CSS 0.9%Language:HTML 0.2%Language:Procfile 0.0%