Spaces:
No application file
No application file
Download node_modules/@gradio/client/dist/upload.d.ts from Dprogrammer/secondtry: direct link, hf CLI and curl.
- Browser
- Download file 1.38 kB
-
https://huggingface.co/spaces/Dprogrammer/secondtry/resolve/main/node_modules/%40gradio/client/dist/upload.d.ts
- Command line
-
hf download hf://spaces/Dprogrammer/secondtry/node_modules/@gradio/client/dist/upload.d.ts
-
curl -L -o upload.d.ts https://huggingface.co/spaces/Dprogrammer/secondtry/resolve/main/node_modules/%40gradio/client/dist/upload.d.ts
1.38 kB
| import { upload_files } from "./client"; | |
| export declare function normalise_file(file: FileData | null, server_url: string, proxy_url: string | null): FileData | null; | |
| export declare function normalise_file(file: FileData[] | null, server_url: string, proxy_url: string | null): FileData[] | null; | |
| export declare function normalise_file(file: FileData[] | FileData | null, server_url: string, // root: string, | |
| proxy_url: string | null): FileData[] | FileData | null; | |
| export declare function get_fetchable_url_or_file(path: string | null, server_url: string, proxy_url: string | null): string; | |
| export declare function upload(file_data: FileData[], root: string, upload_id?: string, upload_fn?: typeof upload_files): Promise<(FileData | null)[] | null>; | |
| export declare function prepare_files(files: File[], is_stream?: boolean): Promise<FileData[]>; | |
| export declare class FileData { | |
| path: string; | |
| url?: string; | |
| orig_name?: string; | |
| size?: number; | |
| blob?: File; | |
| is_stream?: boolean; | |
| mime_type?: string; | |
| alt_text?: string; | |
| constructor({ path, url, orig_name, size, blob, is_stream, mime_type, alt_text }: { | |
| path: string; | |
| url?: string; | |
| orig_name?: string; | |
| size?: number; | |
| blob?: File; | |
| is_stream?: boolean; | |
| mime_type?: string; | |
| alt_text?: string; | |
| }); | |
| } | |
| //# sourceMappingURL=upload.d.ts.map |