Deploying Pipecat to Modal.com
Barebones deployment example for modal.com
- Install dependencies
python -m venv venv
source venv/bin/active # or OS equivalent
pip install -r requirements.txt
- Setup .env
cp env.example .env
Alternatively, you can configure your Modal app to use secrets
- Test the app locally
modal serve app.py
- 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.