Monitor HuoguoML Serving Client
Customize a HuoguoML service for external monitoring tools
Introduction
Customize Serving client
from fastapi import FastAPI
from huoguoml.serving.api import HuoguoMLRouter
app = FastAPI()
huoguoml_router = HuoguoMLRouter(host=host,
port=port,
model_name=model_name,
model_rule=model_rule,
server_uri=server_uri,
artifact_dir=artifact_dir)
# add new endpoints before adding your router to the application
app.include_router(router)Last updated