encoderfile 0.4.0-rc.1

Distribute and run transformer encoders with a single file.
Documentation
1
2
3
4
5
6
7
8
9
use super::model_type::ModelType;
use std::collections::HashMap;

#[derive(Debug, serde::Serialize, utoipa::ToSchema, utoipa::ToResponse)]
pub struct GetModelMetadataResponse {
    pub model_id: String,
    pub model_type: ModelType,
    pub id2label: Option<HashMap<u32, String>>,
}