def get_model_performance(dashboard):
    """Retrieves the model performance from the dashboard

    Parameters
    ----------
    dashboard : plsexplain.dashboard.Dashboard
        The dashboard instance to read from

    Returns
    -------
    Callable
        The API handler for rendering the model performance
    """

    def get_model_performance_internal():
        return dashboard.model_performance()

    return get_model_performance_internal