Download api/app/model/schema.py from iBrokeTheCode/Image_Classifier_with_CNN: direct link, hf CLI and curl.
- Browser
- Download file 196 Bytes
-
https://huggingface.co/spaces/iBrokeTheCode/Image_Classifier_with_CNN/resolve/3ce4bfcd092cc1d5f518baf6ca367ffa336d7d75/api/app/model/schema.py
- Command line
-
hf download hf://spaces/iBrokeTheCode/Image_Classifier_with_CNN@3ce4bfcd092cc1d5f518baf6ca367ffa336d7d75/api/app/model/schema.py
-
curl -L -o schema.py https://huggingface.co/spaces/iBrokeTheCode/Image_Classifier_with_CNN/resolve/3ce4bfcd092cc1d5f518baf6ca367ffa336d7d75/api/app/model/schema.py
196 Bytes
| from pydantic import BaseModel | |
| class PredictRequest(BaseModel): | |
| file: str | |
| class PredictResponse(BaseModel): | |
| success: bool | |
| prediction: str | |
| score: float | |
| image_file_name: str | |