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
Switch Human Review Query Parameter from Boolean to String (#86)
* use human review query param as a string
* add unit test
* Automatically reformatting code
* edit unit test
* Automatically reformatting code
* clean up test
* updated wait times on tests such that they can pass server size valid… (#84)
* updated wait times on tests such that they can pass server size validation. This will be improved once we separate client and service wait times
* Automatically reformatting code
* small update based on Tim's review
* Automatically reformatting code
---------
Co-authored-by: Auto-format Bot <autoformatbot@groundlight.ai>
* human review default to none
* Automatically reformatting code
* Update src/groundlight/client.py
Co-authored-by: Michael Vogelsong <4020875+mjvogelsong@users.noreply.github.com>
* address pr feedback
---------
Co-authored-by: Auto-format Bot <autoformatbot@groundlight.ai>
Co-authored-by: Sunil Kumar <sdkumar@hmc.edu>
Co-authored-by: Michael Vogelsong <4020875+mjvogelsong@users.noreply.github.com>
detector_id ="detector_id_example"# str | Choose a detector by its ID.
208
-
human_review =True#bool | Allow image queries to be marked for no human review. (optional)
208
+
human_review ="human_review_example"#str | If set to `DEFAULT`, use the regular escalation logic (i.e., send the image query for human review if the ML model is not confident). If set to `ALWAYS`, always send the image query for human review even if the ML model is confident. If set to `NEVER`, never send the image query for human review even if the ML model is not confident. (optional)
209
209
patience_time =3.14# float | How long to wait for a confident response. (optional)
210
210
body =open('@path/to/image.jpeg', 'rb') # file_type | (optional)
211
211
@@ -231,7 +231,7 @@ with openapi_client.ApiClient(configuration) as api_client:
**detector_id** | **str**| Choose a detector by its ID. |
234
-
**human_review** | **bool**| Allow image queries to be marked for no human review. | [optional]
234
+
**human_review** | **str**| If set to `DEFAULT`, use the regular escalation logic (i.e., send the image query for human review if the ML model is not confident). If set to `ALWAYS`, always send the image query for human review even if the ML model is confident. If set to `NEVER`, never send the image query for human review even if the ML model is not confident. | [optional]
235
235
**patience_time** | **float**| How long to wait for a confident response. | [optional]
human_review (bool): If set to `False` then unconfident ML predictions will not be escalated to human review. [optional, defaults `True`]
300
+
human_review (str): If set to `DEFAULT`, use the regular escalation logic (i.e., send the image query for human review if the ML model is not confident). If set to `ALWAYS`, always send the image query for human review even if the ML model is confident. If set to `NEVER`, never send the image query for human review even if the ML model is not confident. . [optional]
301
301
patience_time (float): How long to wait for a confident response.. [optional]
302
302
body (file_type): [optional]
303
303
_return_http_data_only (bool): response data without head status
0 commit comments