added image ai-moderation
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
from typing import List
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class ImageModerationResponse(BaseModel):
|
||||
|
||||
approved: bool
|
||||
|
||||
score: float
|
||||
|
||||
reason: str
|
||||
|
||||
label: str
|
||||
|
||||
detected_labels: List[str]
|
||||
Reference in New Issue
Block a user