예제 #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))