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