Spaces:
Sleeping
Sleeping
File size: 353 Bytes
c56dba2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | from pydantic import BaseModel
from typing import List
class FactCheckRequest(BaseModel):
statement: str
class FactCheckSource(BaseModel):
title: str
url: str
snippet: str
class FactCheckResponse(BaseModel):
verdict: str # "PRAWDA", "FAŁSZ", "SPORNE"
explanation: str
confidence: float
sources: List[FactCheckSource] |