You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
detector = gl.create_detector(name="Dog", query="Is it a dog?")
29
+
30
+
# (Or, create a detector with a specific named ML config from https://github.com/positronix-ai/zuuul/blob/main/pysrc/predictor_config/binary_classification_predictors.yaml)
31
+
# detector = gl.create_detector(name="Dog", query="Is it a dog?", config_name="b4mu11-mlp")
32
+
27
33
# Call an API method (e.g., retrieve a list of detectors)
Copy file name to clipboardExpand all lines: generated/docs/DetectorCreationInput.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
9
9
**query** | **str** | A question about the image. |
10
10
**group_name** | **str** | Which group should this detector be part of? | [optional]
11
11
**confidence_threshold** | **float** | If the detector's prediction is below this confidence threshold, send the image query for human review. | [optional] if omitted the server will use the default value of 0.9
12
+
**config_name** | **str, none_type** | (Advanced usage) If your account has multiple named ML configuration options enabled, you can use this field to specify which one you would like to use. | [optional]
12
13
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
13
14
14
15
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
from openapi_client.model.image_query import ImageQuery
28
28
from pprint import pprint
29
-
# Defining the host is optional and defaults to https://device.positronix.ai/device-api
29
+
# Defining the host is optional and defaults to https://api.groundlight.ai/device-api
30
30
# See configuration.py for a list of all supported configuration parameters.
31
31
configuration = openapi_client.Configuration(
32
-
host="https://device.positronix.ai/device-api"
32
+
host="https://api.groundlight.ai/device-api"
33
33
)
34
34
35
35
# The client must configure the authentication and authorization parameters
@@ -103,10 +103,10 @@ import openapi_client
103
103
from openapi_client.api import image_queries_api
104
104
from openapi_client.model.paginated_image_query_list import PaginatedImageQueryList
105
105
from pprint import pprint
106
-
# Defining the host is optional and defaults to https://device.positronix.ai/device-api
106
+
# Defining the host is optional and defaults to https://api.groundlight.ai/device-api
107
107
# See configuration.py for a list of all supported configuration parameters.
108
108
configuration = openapi_client.Configuration(
109
-
host="https://device.positronix.ai/device-api"
109
+
host="https://api.groundlight.ai/device-api"
110
110
)
111
111
112
112
# The client must configure the authentication and authorization parameters
@@ -171,7 +171,7 @@ Name | Type | Description | Notes
171
171
172
172
173
173
174
-
Submit an image query against a detector. You must use `\"Content-Type: image/jpeg\"` for the image data. For example: ```Bash $ curl https://api.groundlight.ai/device-api/v1/image-queries?detector_id=det_abc123 \\ --header \"Content-Type: image/jpeg\" \\ --data-binary @path/to/filename.jpeg ```
174
+
Submit an image query against a detector. You must use `\"Content-Type: image/jpeg\"` for the image data. For example: ```Bash $ curl https://api.groundlight.ai/device-api/v1/image-queries?detector_id=det_abc123 \\ --header \"Content-Type: image/jpeg\" \\ --data-binary @path/to/filename.jpeg ```
175
175
176
176
### Example
177
177
@@ -183,10 +183,10 @@ import openapi_client
183
183
from openapi_client.api import image_queries_api
184
184
from openapi_client.model.image_query import ImageQuery
185
185
from pprint import pprint
186
-
# Defining the host is optional and defaults to https://device.positronix.ai/device-api
186
+
# Defining the host is optional and defaults to https://api.groundlight.ai/device-api
187
187
# See configuration.py for a list of all supported configuration parameters.
188
188
configuration = openapi_client.Configuration(
189
-
host="https://device.positronix.ai/device-api"
189
+
host="https://api.groundlight.ai/device-api"
190
190
)
191
191
192
192
# The client must configure the authentication and authorization parameters
@@ -252,3 +252,4 @@ Name | Type | Description | Notes
252
252
**201** | | - |
253
253
254
254
[[Back to top]](#)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to Model list]](../README.md#documentation-for-models)[[Back to README]](../README.md)
description='(Advanced usage) If your account has multiple named ML configuration options enabled, you can use this field to specify which one you would like to use.',
Copy file name to clipboardExpand all lines: generated/openapi_client/api/image_queries_api.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -360,7 +360,7 @@ def submit_image_query(
360
360
):
361
361
"""submit_image_query # noqa: E501
362
362
363
-
Submit an image query against a detector. You must use `\"Content-Type: image/jpeg\"` for the image data. For example: ```Bash $ curl https://api.groundlight.ai/v1/image-queries?detector_id=det_abc123 \\ --header \"Content-Type: image/jpeg\"\\ --data-binary @path/to/filename.jpeg ``` # noqa: E501
363
+
Submit an image query against a detector. You must use `\"Content-Type: image/jpeg\"` for the image data. For example: ```Bash $ curl https://api.groundlight.ai/device-api/v1/image-queries?detector_id=det_abc123 \\ --header \"Content-Type: image/jpeg\"\\ --data-binary @path/to/filename.jpeg ``` # noqa: E501
364
364
This method makes a synchronous HTTP request by default. To make an
0 commit comments