Spaces:
Running on Zero
Running on Zero
Download frontend/src/types.ts from vechey/khmersense: direct link, hf CLI and curl.
- Browser
- Download file 1.19 kB
-
https://huggingface.co/spaces/vechey/khmersense/resolve/main/frontend/src/types.ts
- Command line
-
hf download hf://spaces/vechey/khmersense/frontend/src/types.ts
-
curl -L -o types.ts https://huggingface.co/spaces/vechey/khmersense/resolve/main/frontend/src/types.ts
1.19 kB
| export type Label = "negative" | "neutral" | "positive"; | |
| export type Lang = "km" | "en" | "mixed" | "other"; | |
| export interface Item { | |
| id: number; | |
| text: string; | |
| language: Lang; | |
| label: Label; | |
| confidence: number; | |
| scores: Record<Label, number>; | |
| likes: number | null; | |
| published_at: string | null; | |
| } | |
| export interface Report { | |
| total: number; | |
| counts: Record<Label, number>; | |
| percent: Record<Label, number>; | |
| net_score: number; | |
| languages: Record<Lang, number>; | |
| trend: ({ date: string } & Record<Label, number>)[]; | |
| needs_attention: Item[]; | |
| top_positive: Item[]; | |
| items: Item[]; | |
| } | |
| export interface Video { | |
| id: string; | |
| title: string; | |
| channel: string; | |
| published_at: string | null; | |
| thumbnail: string | null; | |
| comment_count: number | null; | |
| url: string; | |
| } | |
| export type Source = | |
| | { type: "youtube"; video: Video } | |
| | { type: "text" } | |
| | { type: "file"; filename: string; column: string }; | |
| export interface Result { source: Source; report: Report } | |
| export interface Health { | |
| model: string; | |
| model_loaded: boolean; | |
| youtube_enabled: boolean; | |
| facebook_enabled: boolean; | |
| max_comments: number; | |
| } | |