17 lines
193 B
Python
17 lines
193 B
Python
from typing import List
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class ImageModerationResponse(BaseModel):
|
|
|
|
approved: bool
|
|
|
|
score: float
|
|
|
|
reason: str
|
|
|
|
label: str
|
|
|
|
detected_labels: List[str]
|