Spaces:
Running
Running
Download shared/completeTask.ts from apssouza22/webgpu-cluster: direct link, hf CLI and curl.
- Browser
- Download file 539 Bytes
-
https://huggingface.co/spaces/apssouza22/webgpu-cluster/resolve/main/shared/completeTask.ts
- Command line
-
hf download hf://spaces/apssouza22/webgpu-cluster/shared/completeTask.ts
-
curl -L -o completeTask.ts https://huggingface.co/spaces/apssouza22/webgpu-cluster/resolve/main/shared/completeTask.ts
539 Bytes
| export type ClusterTaskKind = 'detect' | 'describe'; | |
| export type CompleteTaskStatus = 'done' | 'error'; | |
| /** POST /api/tasks/:taskId/complete request body. Parse `result` using `kind` and `status`. */ | |
| export interface CompleteTaskBody { | |
| status: CompleteTaskStatus; | |
| kind: ClusterTaskKind; | |
| result: unknown; | |
| /** Cluster model id that produced this result (e.g. rfdetr-medium, smolvlm-500m). */ | |
| model?: string; | |
| } | |
| export interface TaskErrorResult { | |
| error: string; | |
| } | |
| export interface DescribeTaskResult { | |
| description: string; | |
| } | |