zf-kbot/md-me-nsfw-detection
Public
918.8K
runs
Run zf-kbot/md-me-nsfw-detection with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
Input schema
The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.
| Field | Type | Default value | Description |
|---|---|---|---|
| api_key |
string
|
API Key
|
|
| images |
array
|
[]
|
Image input
|
| videos |
array
|
[]
|
Video input
|
| text |
string
|
Text input
|
|
| threshold |
number
|
0.7
Max: 1 |
Threshold for NSFW detection
|
| video_frames |
integer
|
3
Min: 1 |
Number of video frames to process
|
| max_size |
integer
|
512
Min: 1 |
Maximum size for image resizing
|
| black_list_words |
string
|
Black list words, json format string, e.g. [["text1","text2"]]
|
{
"type": "object",
"title": "Input",
"required": [
"api_key"
],
"properties": {
"text": {
"type": "string",
"title": "Text",
"x-order": 3,
"description": "Text input"
},
"images": {
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Images",
"default": [],
"x-order": 1,
"description": "Image input"
},
"videos": {
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Videos",
"default": [],
"x-order": 2,
"description": "Video input"
},
"api_key": {
"type": "string",
"title": "Api Key",
"x-order": 0,
"description": "API Key"
},
"max_size": {
"type": "integer",
"title": "Max Size",
"default": 512,
"minimum": 1,
"x-order": 6,
"description": "Maximum size for image resizing"
},
"threshold": {
"type": "number",
"title": "Threshold",
"default": 0.7,
"maximum": 1,
"minimum": 0,
"x-order": 4,
"description": "Threshold for NSFW detection"
},
"video_frames": {
"type": "integer",
"title": "Video Frames",
"default": 3,
"minimum": 1,
"x-order": 5,
"description": "Number of video frames to process"
},
"black_list_words": {
"type": "string",
"title": "Black List Words",
"x-order": 7,
"description": "Black list words, json format string, e.g. [[\"text1\",\"text2\"]]"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "string",
"title": "Output"
}