File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -207,6 +207,7 @@ def _verify_connectivity(self) -> None:
207
207
f"Error connecting to Groundlight using API token '{ self .api_token_prefix } ...'"
208
208
f" at endpoint '{ self .endpoint } '. Endpoint might be invalid or unreachable? "
209
209
"Check https://status.groundlight.ai/ for service status."
210
+ f"Original Error was: { str (e )} "
210
211
)
211
212
raise GroundlightClientError (msg ) from e
212
213
@@ -361,6 +362,10 @@ def create_detector( # noqa: PLR0913
361
362
"""
362
363
Create a new Detector with a given name and query.
363
364
365
+ Counting and Multiclass detectors are in Beta, and can be created through the
366
+ ExperimentalApi via the :meth:`ExperimentalApi.create_counting_detector` and
367
+ :meth:`ExperimentalApi.create_multiclass_detector` methods.
368
+
364
369
**Example usage**::
365
370
366
371
gl = Groundlight()
@@ -383,8 +388,8 @@ def create_detector( # noqa: PLR0913
383
388
384
389
# Create a detector in a specific group
385
390
detector = gl.create_detector(
386
- name="vehicle-counter ",
387
- query="How many vehicles are in the parking lot?",
391
+ name="vehicle-monitor ",
392
+ query="Are there vehicles are in the parking lot?",
388
393
group_name="parking-monitoring",
389
394
patience_time=60.0
390
395
)
You can’t perform that action at this time.
0 commit comments