Download models.py from ProzisTech/key-text-image-finder: direct link, hf CLI and curl.
- Browser
- Download file 245 Bytes
-
https://huggingface.co/spaces/ProzisTech/key-text-image-finder/resolve/main/models.py
- Command line
-
hf download hf://spaces/ProzisTech/key-text-image-finder/models.py
-
curl -L -o models.py https://huggingface.co/spaces/ProzisTech/key-text-image-finder/resolve/main/models.py
245 Bytes
| from pydantic import BaseModel | |
| from typing import List | |
| class RequestModel(BaseModel): | |
| originId: int | |
| source: str | |
| class TextSimilarityRequest(BaseModel): | |
| imageInfo: RequestModel | |
| keyTexts: List[str] | |
| similarityThreshold: float |