Spaces:
Runtime error
Runtime error
Brian Smith
commited on
Commit
•
72169f6
1
Parent(s):
a8ed559
Added swagger file
Browse filesThis swagger file can be used to create the custom connector for the PowerApps solution
- whichraptor.swagger.json +106 -0
whichraptor.swagger.json
ADDED
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"swagger": "2.0",
|
3 |
+
"info": {
|
4 |
+
"title": "whichraptor",
|
5 |
+
"description": "API for huggingface space",
|
6 |
+
"version": "1.0"
|
7 |
+
},
|
8 |
+
"host": "hf.space",
|
9 |
+
"basePath": "/embed/LunchWithaLens/whichraptor/+/api/predict",
|
10 |
+
"schemes": [
|
11 |
+
"https"
|
12 |
+
],
|
13 |
+
"consumes": [],
|
14 |
+
"produces": [],
|
15 |
+
"paths": {
|
16 |
+
"/": {
|
17 |
+
"post": {
|
18 |
+
"responses": {
|
19 |
+
"default": {
|
20 |
+
"description": "default",
|
21 |
+
"schema": {
|
22 |
+
"type": "object",
|
23 |
+
"properties": {
|
24 |
+
"data": {
|
25 |
+
"type": "array",
|
26 |
+
"items": {
|
27 |
+
"type": "object",
|
28 |
+
"properties": {
|
29 |
+
"label": {
|
30 |
+
"type": "string",
|
31 |
+
"description": "label"
|
32 |
+
},
|
33 |
+
"confidences": {
|
34 |
+
"type": "array",
|
35 |
+
"items": {
|
36 |
+
"type": "object",
|
37 |
+
"properties": {
|
38 |
+
"label": {
|
39 |
+
"type": "string",
|
40 |
+
"description": "label"
|
41 |
+
},
|
42 |
+
"confidence": {
|
43 |
+
"type": "number",
|
44 |
+
"format": "float",
|
45 |
+
"description": "confidence"
|
46 |
+
}
|
47 |
+
}
|
48 |
+
},
|
49 |
+
"description": "confidences"
|
50 |
+
}
|
51 |
+
}
|
52 |
+
},
|
53 |
+
"description": "data"
|
54 |
+
},
|
55 |
+
"durations": {
|
56 |
+
"type": "array",
|
57 |
+
"items": {
|
58 |
+
"type": "number",
|
59 |
+
"format": "float"
|
60 |
+
},
|
61 |
+
"description": "durations"
|
62 |
+
},
|
63 |
+
"avg_durations": {
|
64 |
+
"type": "array",
|
65 |
+
"items": {
|
66 |
+
"type": "number",
|
67 |
+
"format": "float"
|
68 |
+
},
|
69 |
+
"description": "avg_durations"
|
70 |
+
}
|
71 |
+
}
|
72 |
+
}
|
73 |
+
}
|
74 |
+
},
|
75 |
+
"summary": "Sending picture to hf",
|
76 |
+
"description": "Posting a picture will see what raptor it thinks this is",
|
77 |
+
"operationId": "Predict",
|
78 |
+
"parameters": [
|
79 |
+
{
|
80 |
+
"name": "body",
|
81 |
+
"in": "body",
|
82 |
+
"required": false,
|
83 |
+
"schema": {
|
84 |
+
"type": "object",
|
85 |
+
"properties": {
|
86 |
+
"data": {
|
87 |
+
"type": "array",
|
88 |
+
"items": {
|
89 |
+
"type": "string"
|
90 |
+
},
|
91 |
+
"description": "data"
|
92 |
+
}
|
93 |
+
}
|
94 |
+
}
|
95 |
+
}
|
96 |
+
]
|
97 |
+
}
|
98 |
+
}
|
99 |
+
},
|
100 |
+
"definitions": {},
|
101 |
+
"parameters": {},
|
102 |
+
"responses": {},
|
103 |
+
"securityDefinitions": {},
|
104 |
+
"security": [],
|
105 |
+
"tags": []
|
106 |
+
}
|