Files
pipecat/examples/deployment/modal-example

Deploying Pipecat to Modal.com

Barebones deployment example for modal.com

  1. Install dependencies
python -m venv venv
source venv/bin/active # or OS equivalent
pip install -r requirements.txt
  1. Setup .env
cp env.example .env

Alternatively, you can configure your Modal app to use secrets

  1. Test the app locally
modal serve app.py
  1. Deploy to production
modal deploy app.py

Configuration options

This app sets some sensible defaults for reducing cold starts, such as minkeep_warm=1, which will keep at least 1 warm instance ready for your bot function.

It has been configured to only allow a concurrency of 1 (max_inputs=1) as each user will require their own running function.