Spaces:
Running
Running
Download src/tasks/types.ts from apssouza22/webgpu-cluster: direct link, hf CLI and curl.
- Browser
- Download file 872 Bytes
-
https://huggingface.co/spaces/apssouza22/webgpu-cluster/resolve/main/src/tasks/types.ts
- Command line
-
hf download hf://spaces/apssouza22/webgpu-cluster/src/tasks/types.ts
-
curl -L -o types.ts https://huggingface.co/spaces/apssouza22/webgpu-cluster/resolve/main/src/tasks/types.ts
872 Bytes
| import type {ClusterTaskKind} from '../../shared/completeTask'; | |
| import type {ObjectDetector} from '../detection/ObjectDetector'; | |
| import type {VideoFrameDescriber} from '../videodescription/VideoFrameDescriber'; | |
| export type { | |
| ClusterTaskKind, | |
| CompleteTaskBody, | |
| CompleteTaskStatus, | |
| DescribeTaskResult, | |
| TaskErrorResult, | |
| } from '../../shared/completeTask'; | |
| export interface HostTaskMessage { | |
| id: string; | |
| kind: ClusterTaskKind; | |
| image_base64: string; | |
| mime_type: string; | |
| threshold?: number; | |
| instruction?: string; | |
| max_new_tokens?: number; | |
| } | |
| export interface ClusterTaskHostContext { | |
| apiBase: string; | |
| getSelectedModelId: () => string; | |
| setStatus: (message: string) => void; | |
| } | |
| export interface ClusterTaskHandlerOptions extends ClusterTaskHostContext { | |
| getDetector: () => ObjectDetector | null; | |
| getDescriber: () => VideoFrameDescriber | null; | |
| } | |