Download api/app/feedback/schema.py from iBrokeTheCode/Image_Classifier_with_CNN: direct link, hf CLI and curl.
- Browser
- Download file 321 Bytes
-
https://huggingface.co/spaces/iBrokeTheCode/Image_Classifier_with_CNN/resolve/main/api/app/feedback/schema.py
- Command line
-
hf download hf://spaces/iBrokeTheCode/Image_Classifier_with_CNN/api/app/feedback/schema.py
-
curl -L -o schema.py https://huggingface.co/spaces/iBrokeTheCode/Image_Classifier_with_CNN/resolve/main/api/app/feedback/schema.py
321 Bytes
| from pydantic import BaseModel | |
| class Feedback(BaseModel): | |
| score: float | |
| predicted_class: str | |
| image_file_name: str | |
| feedback: str | |
| class DisplayFeedback(BaseModel): | |
| id: int | |
| score: float | |
| predicted_class: str | |
| image_file_name: str | |
| feedback: str | |
| class Config: | |
| orm_mode = True | |