Spaces:
Sleeping
Sleeping
File size: 208 Bytes
492754f | 1 2 3 4 5 6 7 8 9 10 | from pydantic import BaseModel, Field
class PredictionRequest(BaseModel):
text: str = Field(..., min_length=5)
class PredictionResponse(BaseModel):
predicted_class: str
confidence_score: float |