Download parrot/lib/python3.10/site-packages/gradio_client/data_classes.py from ZTWHHH/envs_2: direct link, hf CLI and curl.
- Browser
- Download file 428 Bytes
-
https://huggingface.co/datasets/ZTWHHH/envs_2/resolve/main/parrot/lib/python3.10/site-packages/gradio_client/data_classes.py
- Command line
-
hf download hf://datasets/ZTWHHH/envs_2/parrot/lib/python3.10/site-packages/gradio_client/data_classes.py
-
curl -L -o data_classes.py https://huggingface.co/datasets/ZTWHHH/envs_2/resolve/main/parrot/lib/python3.10/site-packages/gradio_client/data_classes.py
428 Bytes
| from __future__ import annotations | |
| from typing import TypedDict | |
| from typing_extensions import NotRequired | |
| class FileData(TypedDict): | |
| name: str | None # filename | |
| data: str | None # base64 encoded data | |
| size: NotRequired[int | None] # size in bytes | |
| is_file: NotRequired[ | |
| bool | |
| ] # whether the data corresponds to a file or base64 encoded data | |
| orig_name: NotRequired[str] # original filename | |