mirror of
https://github.com/katanemo/plano.git
synced 2026-05-01 03:46:35 +02:00
18 lines
463 B
Rust
18 lines
463 B
Rust
use std::collections::HashMap;
|
|
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
|
pub struct ZeroShotClassificationRequest {
|
|
pub input: String,
|
|
pub labels: Vec<String>,
|
|
pub model: String,
|
|
}
|
|
|
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
|
pub struct ZeroShotClassificationResponse {
|
|
pub predicted_class: String,
|
|
pub predicted_class_score: f64,
|
|
pub scores: HashMap<String, f64>,
|
|
pub model: String,
|
|
}
|