File size: 298 Bytes
d11c1ab |
1 2 3 4 5 6 7 8 9 10 11 |
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() |