whichraptor / whichraptor.swagger.json
Brian Smith
Added swagger file
72169f6
{
"swagger": "2.0",
"info": {
"title": "whichraptor",
"description": "API for huggingface space",
"version": "1.0"
},
"host": "hf.space",
"basePath": "/embed/LunchWithaLens/whichraptor/+/api/predict",
"schemes": [
"https"
],
"consumes": [],
"produces": [],
"paths": {
"/": {
"post": {
"responses": {
"default": {
"description": "default",
"schema": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
"type": "string",
"description": "label"
},
"confidences": {
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
"type": "string",
"description": "label"
},
"confidence": {
"type": "number",
"format": "float",
"description": "confidence"
}
}
},
"description": "confidences"
}
}
},
"description": "data"
},
"durations": {
"type": "array",
"items": {
"type": "number",
"format": "float"
},
"description": "durations"
},
"avg_durations": {
"type": "array",
"items": {
"type": "number",
"format": "float"
},
"description": "avg_durations"
}
}
}
}
},
"summary": "Sending picture to hf",
"description": "Posting a picture will see what raptor it thinks this is",
"operationId": "Predict",
"parameters": [
{
"name": "body",
"in": "body",
"required": false,
"schema": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "string"
},
"description": "data"
}
}
}
}
]
}
}
},
"definitions": {},
"parameters": {},
"responses": {},
"securityDefinitions": {},
"security": [],
"tags": []
}