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
Typically you'll use the ```get_or_create_detector(name: str, query: str)``` method to find an existing detector you've already created with the same name, or create a new one if it doesn't exists. But if you'd like to force creating a new detector you can also use the ```create_detector(name: str, query: str)``` method
113
+
114
+
```Python
115
+
detector = gl.create_detector(name="your_detector_name", query="is this what we want to see?")
Groundlight lets you start using models by making queries against your very first image, but there are a few situations where you might either have an existing dataset, or you'd like to handle the escalation response programatically in your own code but still include the label to get better responses in the future. With your ```image_query``` from either ```submit_image_query()``` or ```get_image_query()``` you can add the label directly. Note that if the query is already in the escalation queue due to low ML confidence or audit thresholds, it may also receive labels from another source.
155
+
156
+
```Python
157
+
add_label(image_query, 'YES'). # or 'NO'
158
+
```
159
+
160
+
The only valid labels at this time are ```'YES'``` and ```'NO'```
161
+
162
+
144
163
### Handling HTTP errors
145
164
146
165
If there is an HTTP error during an API call, it will raise an `ApiException`. You can access different metadata from that exception:
0 commit comments