#!/bin/bash # Start the first process lc-serve deploy local api.py & # Start the second process streamlit run app.py --server.port=7860 & # Wait for any process to exit wait -n # Exit with status of process that exited first exit $?