Spaces:
Sleeping
Sleeping
Download src/ui/types.py from s1ngledoge/Image-Retrieval-System: direct link, hf CLI and curl.
- Browser
- Download file 302 Bytes
-
https://huggingface.co/spaces/s1ngledoge/Image-Retrieval-System/resolve/main/src/ui/types.py
- Command line
-
hf download hf://spaces/s1ngledoge/Image-Retrieval-System/src/ui/types.py
-
curl -L -o types.py https://huggingface.co/spaces/s1ngledoge/Image-Retrieval-System/resolve/main/src/ui/types.py
302 Bytes
| from __future__ import annotations | |
| from typing import TypedDict | |
| GalleryItem = tuple[str, str] | |
| class ResultState(TypedDict): | |
| id: str | |
| path: str | |
| filename: str | |
| category: str | |
| score: float | |
| choice_label: str | |
| class FavoriteState(ResultState, total=False): | |
| favorite_path: str | |