Spaces:
Runtime error
Runtime error
File size: 424 Bytes
df8bb52 a4afd07 df8bb52 a4afd07 df8bb52 a4afd07 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
#!/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
|