INNER CODE UNIT · Python
run
pathwaycom/llm-app · serviette/frontend/main.py:143
def run(config: ServietteConfig) -> None:
"""Start uvicorn with the configured frontend host/port (used by the CLI)."""
import uvicorn
config.for_frontend()
fe = config.frontend
assert fe is not None # guaranteed by for_frontend()
app = create_app(config)
uvicorn.run(app, host=fe.host, port=fe.port)