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