Spaces:
Sleeping
Sleeping
File size: 634 Bytes
cf93910 c476eae cf93910 c476eae cf93910 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | /**
* Shared TypeScript types for SanketSetu frontend.
*/
export type ModelMode = 'A' | 'B' | 'C' | 'ensemble'
export interface PredictionResponse {
sign: string;
confidence: number;
pipeline: ModelMode | `${'A' | 'B' | 'C'}+${string}`;
label_index: number;
probabilities?: number[];
latency_ms?: number;
}
export interface HealthResponse {
status: string;
models_loaded: boolean;
pipelines_available: string[];
}
/** Normalised 21-landmark hand data from MediaPipe */
export interface HandLandmarks {
landmarks: number[]; // flat [x0,y0,z0 … x20,y20,z20] — 63 floats
handedness: 'Left' | 'Right';
}
|