INNER CODE UNIT · Python
start_backend
underneathall/pinferencia · pinferencia/main.py:67
def start_backend(app, **kwargs):
uvicorn.run(app, **kwargs)
def check_dependencies(mode: str = ""):
if mode != "backend":
try:
import streamlit # noqa
except ImportError:
sys.exit(
"You need to install streamlit to start the frontend. "
"To install streamlit, run: pip install streamlit"
)
if mode != "frontend":
try:
import uvicorn # noqa
except ImportError:
sys.exit(