docforensics / api /schemas.py
Suryakarthik-1
Deploy DocForensics to Hugging Face Spaces
70520f0
Raw
History Blame Contribute Delete
296 Bytes
from pydantic import BaseModel
class DetectorResult(BaseModel):
name: str
score: float
details: dict
class AnalyzeResponse(BaseModel):
is_tampered: bool
label: str
confidence: float
evidence: list[str]
per_detector: list[DetectorResult]
heatmap_base64: str