pratham0011's picture
Upload 6 files
d11c1ab verified
raw
history blame
298 Bytes
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()