File size: 643 Bytes
948b11c
96812c9
 
948b11c
 
 
96812c9
 
 
948b11c
 
 
96812c9
 
948b11c
 
daa5539
96812c9
 
 
948b11c
 
08476ef
96812c9
 
daa5539
 
96812c9
 
 
 
 
 
 
 
 
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
28
29
30
31
32
33
34
35
36
37
export interface Section {
  title: string
  items: string[]
}

export interface ClassificationOutput {
  sequence: string
  labels: string[]
  scores: number[]
}

export interface WorkerMessage {
  status: 'initiate' | 'ready' | 'output' | 'complete' | 'progress'
  output?: any
}

export interface ZeroShotWorkerInput {
  text: string
  labels: string[]
  model: string
}

export interface TextClassificationWorkerInput {
  text: string
  model: string
}

export type AppStatus = 'idle' | 'loading' | 'processing'

export interface ModelInfo {
  name: string
  architecture: string
  parameters: number
  likes: number
  downloads: number
}