Download client/modules/types.ts from abhijeetsarkargis/MiniSearch: direct link, hf CLI and curl.
- Browser
- Download file 698 Bytes
-
https://huggingface.co/spaces/abhijeetsarkargis/MiniSearch/resolve/main/client/modules/types.ts
- Command line
-
hf download hf://spaces/abhijeetsarkargis/MiniSearch/client/modules/types.ts
-
curl -L -o types.ts https://huggingface.co/spaces/abhijeetsarkargis/MiniSearch/resolve/main/client/modules/types.ts
698 Bytes
| export type TextSearchResult = [title: string, snippet: string, url: string]; | |
| export type ImageSearchResult = [ | |
| title: string, | |
| url: string, | |
| thumbnailUrl: string, | |
| sourceUrl: string, | |
| ]; | |
| export type TextSearchResults = TextSearchResult[]; | |
| export type ImageSearchResults = ImageSearchResult[]; | |
| export type SearchState = "idle" | "running" | "failed" | "completed"; | |
| export type SearchResults = { | |
| textResults: TextSearchResult[]; | |
| imageResults: ImageSearchResult[]; | |
| }; | |
| export type TextGenerationState = | |
| | "idle" | |
| | "awaitingModelDownloadAllowance" | |
| | "loadingModel" | |
| | "awaitingSearchResults" | |
| | "preparingToGenerate" | |
| | "generating" | |
| | "interrupted" | |
| | "failed" | |
| | "completed"; | |