Spaces:
Runtime error
Runtime error
| from pydantic import BaseModel | |
| from typing import Optional | |
| class DetectRequest(BaseModel): | |
| text: str | |
| threshold: float = 0.0 | |
| class DetectResponse(BaseModel): | |
| final_label: str | |
| confidence: float | |
| roberta_confidence: float | |
| probabilities: dict[str, float] | |
| llm_triggered: bool | |
| explanation: Optional[str] = None | |
| highlighted_phrase: Optional[str] = None | |
| timing: dict[str, float] |