Skip to content

Commit

Permalink
Merge branch 'main' into tyler/multiclass-detector-support
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler-romero authored Oct 9, 2024
2 parents 1fa2abd + 457aaaf commit 63601cc
Show file tree
Hide file tree
Showing 66 changed files with 115 additions and 116 deletions.
2 changes: 1 addition & 1 deletion generated/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Groundlight makes it simple to understand images. You can easily create computer

This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 0.15.3
- API version: 0.18.1
- Package version: 1.0.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen

Expand Down
2 changes: 1 addition & 1 deletion generated/docs/BinaryClassificationResult.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**source** | **str** | |
**label** | **str** | |
**confidence** | **float** | | [optional]
**source** | **str** | Source is optional to support edge v0.2 | [optional]
**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]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
2 changes: 1 addition & 1 deletion generated/docs/CountingResult.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**source** | **str** | |
**count** | **int** | |
**confidence** | **float** | | [optional]
**source** | **str** | Source is optional to support edge v0.2 | [optional]
**greater_than_max** | **bool** | | [optional]
**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]

Expand Down
2 changes: 1 addition & 1 deletion generated/docs/LabelValue.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ Name | Type | Description | Notes
**annotations_requested** | **[bool, date, datetime, dict, float, int, list, str, none_type]** | | [readonly]
**created_at** | **datetime** | | [readonly]
**detector_id** | **int, none_type** | | [readonly]
**source** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [readonly]
**text** | **str, none_type** | Text annotations | [readonly]
**rois** | [**[ROI], none_type**](ROI.md) | | [optional]
**source** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional] [readonly]
**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]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
2 changes: 1 addition & 1 deletion generated/docs/MultiClassificationResult.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**source** | **str** | |
**label** | **str** | |
**confidence** | **float** | | [optional]
**source** | **str** | Source is optional to support edge v0.2 | [optional]
**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]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
2 changes: 1 addition & 1 deletion generated/groundlight_openapi_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Groundlight makes it simple to understand images. You can easily create computer vision detectors just by describing what you want to know using natural language. # noqa: E501
The version of the OpenAPI document: 0.15.3
The version of the OpenAPI document: 0.18.1
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion generated/groundlight_openapi_client/api/actions_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Groundlight makes it simple to understand images. You can easily create computer vision detectors just by describing what you want to know using natural language. # noqa: E501
The version of the OpenAPI document: 0.15.3
The version of the OpenAPI document: 0.18.1
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Groundlight makes it simple to understand images. You can easily create computer vision detectors just by describing what you want to know using natural language. # noqa: E501
The version of the OpenAPI document: 0.15.3
The version of the OpenAPI document: 0.18.1
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Groundlight makes it simple to understand images. You can easily create computer vision detectors just by describing what you want to know using natural language. # noqa: E501
The version of the OpenAPI document: 0.15.3
The version of the OpenAPI document: 0.18.1
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion generated/groundlight_openapi_client/api/detectors_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Groundlight makes it simple to understand images. You can easily create computer vision detectors just by describing what you want to know using natural language. # noqa: E501
The version of the OpenAPI document: 0.15.3
The version of the OpenAPI document: 0.18.1
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Groundlight makes it simple to understand images. You can easily create computer vision detectors just by describing what you want to know using natural language. # noqa: E501
The version of the OpenAPI document: 0.15.3
The version of the OpenAPI document: 0.18.1
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion generated/groundlight_openapi_client/api/labels_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Groundlight makes it simple to understand images. You can easily create computer vision detectors just by describing what you want to know using natural language. # noqa: E501
The version of the OpenAPI document: 0.15.3
The version of the OpenAPI document: 0.18.1
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion generated/groundlight_openapi_client/api/notes_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Groundlight makes it simple to understand images. You can easily create computer vision detectors just by describing what you want to know using natural language. # noqa: E501
The version of the OpenAPI document: 0.15.3
The version of the OpenAPI document: 0.18.1
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion generated/groundlight_openapi_client/api/user_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Groundlight makes it simple to understand images. You can easily create computer vision detectors just by describing what you want to know using natural language. # noqa: E501
The version of the OpenAPI document: 0.15.3
The version of the OpenAPI document: 0.18.1
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion generated/groundlight_openapi_client/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Groundlight makes it simple to understand images. You can easily create computer vision detectors just by describing what you want to know using natural language. # noqa: E501
The version of the OpenAPI document: 0.15.3
The version of the OpenAPI document: 0.18.1
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
4 changes: 2 additions & 2 deletions generated/groundlight_openapi_client/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Groundlight makes it simple to understand images. You can easily create computer vision detectors just by describing what you want to know using natural language. # noqa: E501
The version of the OpenAPI document: 0.15.3
The version of the OpenAPI document: 0.18.1
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down Expand Up @@ -419,7 +419,7 @@ def to_debug_report(self):
"Python SDK Debug Report:\n"
"OS: {env}\n"
"Python Version: {pyversion}\n"
"Version of the API: 0.15.3\n"
"Version of the API: 0.18.1\n"
"SDK Package Version: 1.0.0".format(env=sys.platform, pyversion=sys.version)
)

Expand Down
2 changes: 1 addition & 1 deletion generated/groundlight_openapi_client/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Groundlight makes it simple to understand images. You can easily create computer vision detectors just by describing what you want to know using natural language. # noqa: E501
The version of the OpenAPI document: 0.15.3
The version of the OpenAPI document: 0.18.1
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion generated/groundlight_openapi_client/model/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Groundlight makes it simple to understand images. You can easily create computer vision detectors just by describing what you want to know using natural language. # noqa: E501
The version of the OpenAPI document: 0.15.3
The version of the OpenAPI document: 0.18.1
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion generated/groundlight_openapi_client/model/action_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Groundlight makes it simple to understand images. You can easily create computer vision detectors just by describing what you want to know using natural language. # noqa: E501
The version of the OpenAPI document: 0.15.3
The version of the OpenAPI document: 0.18.1
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion generated/groundlight_openapi_client/model/all_notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Groundlight makes it simple to understand images. You can easily create computer vision detectors just by describing what you want to know using natural language. # noqa: E501
The version of the OpenAPI document: 0.15.3
The version of the OpenAPI document: 0.18.1
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Groundlight makes it simple to understand images. You can easily create computer vision detectors just by describing what you want to know using natural language. # noqa: E501
The version of the OpenAPI document: 0.15.3
The version of the OpenAPI document: 0.18.1
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Groundlight makes it simple to understand images. You can easily create computer vision detectors just by describing what you want to know using natural language. # noqa: E501
The version of the OpenAPI document: 0.15.3
The version of the OpenAPI document: 0.18.1
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Groundlight makes it simple to understand images. You can easily create computer vision detectors just by describing what you want to know using natural language. # noqa: E501
The version of the OpenAPI document: 0.15.3
The version of the OpenAPI document: 0.18.1
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Groundlight makes it simple to understand images. You can easily create computer vision detectors just by describing what you want to know using natural language. # noqa: E501
The version of the OpenAPI document: 0.15.3
The version of the OpenAPI document: 0.18.1
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down Expand Up @@ -54,18 +54,18 @@ class BinaryClassificationResult(ModelNormal):
"""

allowed_values = {
("label",): {
"YES": "YES",
"NO": "NO",
"UNCLEAR": "UNCLEAR",
},
("source",): {
"STILL_PROCESSING": "STILL_PROCESSING",
"CLOUD": "CLOUD",
"USER": "USER",
"CLOUD_ENSEMBLE": "CLOUD_ENSEMBLE",
"ALGORITHM": "ALGORITHM",
},
("label",): {
"YES": "YES",
"NO": "NO",
"UNCLEAR": "UNCLEAR",
},
}

validations = {
Expand Down Expand Up @@ -106,19 +106,19 @@ def openapi_types():
and the value is attribute type.
"""
return {
"source": (str,), # noqa: E501
"label": (str,), # noqa: E501
"confidence": (float,), # noqa: E501
"source": (str,), # noqa: E501
}

@cached_property
def discriminator():
return None

attribute_map = {
"source": "source", # noqa: E501
"label": "label", # noqa: E501
"confidence": "confidence", # noqa: E501
"source": "source", # noqa: E501
}

read_only_vars = {}
Expand All @@ -127,11 +127,10 @@ def discriminator():

@classmethod
@convert_js_args_to_python_args
def _from_openapi_data(cls, source, label, *args, **kwargs): # noqa: E501
def _from_openapi_data(cls, label, *args, **kwargs): # noqa: E501
"""BinaryClassificationResult - a model defined in OpenAPI
Args:
source (str):
label (str):
Keyword Args:
Expand Down Expand Up @@ -166,6 +165,7 @@ def _from_openapi_data(cls, source, label, *args, **kwargs): # noqa: E501
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
confidence (float): [optional] # noqa: E501
source (str): Source is optional to support edge v0.2. [optional] # noqa: E501
"""

_check_type = kwargs.pop("_check_type", True)
Expand Down Expand Up @@ -194,7 +194,6 @@ def _from_openapi_data(cls, source, label, *args, **kwargs): # noqa: E501
self._configuration = _configuration
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)

self.source = source
self.label = label
for var_name, var_value in kwargs.items():
if (
Expand All @@ -218,11 +217,10 @@ def _from_openapi_data(cls, source, label, *args, **kwargs): # noqa: E501
])

@convert_js_args_to_python_args
def __init__(self, source, label, *args, **kwargs): # noqa: E501
def __init__(self, label, *args, **kwargs): # noqa: E501
"""BinaryClassificationResult - a model defined in OpenAPI
Args:
source (str):
label (str):
Keyword Args:
Expand Down Expand Up @@ -257,6 +255,7 @@ def __init__(self, source, label, *args, **kwargs): # noqa: E501
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
confidence (float): [optional] # noqa: E501
source (str): Source is optional to support edge v0.2. [optional] # noqa: E501
"""

_check_type = kwargs.pop("_check_type", True)
Expand All @@ -283,7 +282,6 @@ def __init__(self, source, label, *args, **kwargs): # noqa: E501
self._configuration = _configuration
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)

self.source = source
self.label = label
for var_name, var_value in kwargs.items():
if (
Expand Down
2 changes: 1 addition & 1 deletion generated/groundlight_openapi_client/model/blank_enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Groundlight makes it simple to understand images. You can easily create computer vision detectors just by describing what you want to know using natural language. # noqa: E501
The version of the OpenAPI document: 0.15.3
The version of the OpenAPI document: 0.18.1
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion generated/groundlight_openapi_client/model/channel_enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Groundlight makes it simple to understand images. You can easily create computer vision detectors just by describing what you want to know using natural language. # noqa: E501
The version of the OpenAPI document: 0.15.3
The version of the OpenAPI document: 0.18.1
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion generated/groundlight_openapi_client/model/condition.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Groundlight makes it simple to understand images. You can easily create computer vision detectors just by describing what you want to know using natural language. # noqa: E501
The version of the OpenAPI document: 0.15.3
The version of the OpenAPI document: 0.18.1
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Groundlight makes it simple to understand images. You can easily create computer vision detectors just by describing what you want to know using natural language. # noqa: E501
The version of the OpenAPI document: 0.15.3
The version of the OpenAPI document: 0.18.1
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Groundlight makes it simple to understand images. You can easily create computer vision detectors just by describing what you want to know using natural language. # noqa: E501
The version of the OpenAPI document: 0.15.3
The version of the OpenAPI document: 0.18.1
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
Loading

0 comments on commit 63601cc

Please sign in to comment.