# Start the FastAPI server in the background | |
uvicorn api:app --host 0.0.0.0 --port 8000 & | |
# Wait for a few seconds to ensure FastAPI starts | |
sleep 5 | |
# Start the Streamlit app | |
streamlit run app.py --server.port 7860 --server.address 0.0.0.0 | |
# Start the FastAPI server in the background | |
uvicorn api:app --host 0.0.0.0 --port 8000 & | |
# Wait for a few seconds to ensure FastAPI starts | |
sleep 5 | |
# Start the Streamlit app | |
streamlit run app.py --server.port 7860 --server.address 0.0.0.0 | |