CodeLlama-7b / start_server.sh
Shawn732's picture
3rd
a4afd07
raw
history blame contribute delete
424 Bytes
#!/bin/bash
# Start FastAPI app
echo "Starting FastAPI app..."
#uvicorn main:app --reload &
python3 main.py &
# Store FastAPI process ID
FASTAPI_PID=$!
# Start Streamlit app
#echo "Starting Streamlit app..."
#streamlit run streamlit_app.py &
# Store Streamlit process ID
#STREAMLIT_PID=$!
# Wait for any process to exit
wait -n
# Kill the other process when one exits
kill -TERM $FASTAPI_PID
#kill -TERM $STREAMLIT_PID