Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Chainlit/cookbook
Chainlit's cookbook repo
https://github.com/Chainlit/cookbook
Last synced: 2 months ago
JSON representation
Chainlit's cookbook repo
- Host: GitHub
- URL: https://github.com/Chainlit/cookbook
- Owner: Chainlit
- Created: 2023-05-10T08:52:57.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-22T09:49:28.000Z (3 months ago)
- Last Synced: 2024-11-08T10:25:46.716Z (2 months ago)
- Language: Python
- Homepage: https://github.com/Chainlit/chainlit
- Size: 25.6 MB
- Stars: 785
- Watchers: 13
- Forks: 285
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-rainmana - Chainlit/cookbook - Chainlit's cookbook repo (Python)
- jimsghstars - Chainlit/cookbook - Chainlit's cookbook repo (Python)
README
# 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!