INNER CODE UNIT · Python
check_dependencies
underneathall/pinferencia · pinferencia/main.py:71
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(
"You need to install uvicorn to start the backend. "
"To install uvicorn, run: pip install uvicorn"
)