import subprocess | |
# Start Streamlit | |
streamlit_process = subprocess.Popen(["streamlit", "run", "streamlit_app.py"]) | |
# Start Uvicorn | |
uvicorn_process = subprocess.Popen(["uvicorn", "main:app", "--reload"]) | |
# Wait for the processes to finish | |
streamlit_process.wait() | |
uvicorn_process.wait() |