Skip to main content

save_model

Function save_model 

Source
pub(crate) async fn save_model(
    state: &Arc<AppState>,
    model: Model,
) -> Result<Arc<Model>, ApiError>
Expand description

Save the model on a blocking thread and make it the cached copy. Call with write_lock held.