Spaces:
Runtime error
Runtime error
Update structure.py
Browse files- structure.py +1 -1
structure.py
CHANGED
|
@@ -7,4 +7,4 @@ class TextPredictionRequest(BaseModel):
|
|
| 7 |
|
| 8 |
class PredictionResponse(BaseModel):
|
| 9 |
predicted_class: int = Field(..., description="0 = Real, 1 = AI", example=0)
|
| 10 |
-
confidence: float = Field(..., ge=
|
|
|
|
| 7 |
|
| 8 |
class PredictionResponse(BaseModel):
|
| 9 |
predicted_class: int = Field(..., description="0 = Real, 1 = AI", example=0)
|
| 10 |
+
confidence: float = Field(..., ge=0.0, le=1.0)
|