pub async fn create_detector(
    model: ModelWithConfig
) -> Result<PoseDetector, JsValue>