コード例 #1
0
 async def status():
     with http_error_handling():
         return {"ok": True}
コード例 #2
0
 async def explain(inputs: Dict[str, Any]):
     with http_error_handling():
         return sanitize(pipeline.explain(**inputs))
コード例 #3
0
 async def config():
     with http_error_handling():
         return pipeline.config.as_dict()
コード例 #4
0
 async def predict(inputs: Dict[str, Any]):
     with http_error_handling():
         return sanitize(pipeline.predict(**inputs))