Skip to content

Commit e194d75

Browse files
committed
Changing default delay for submit image query to 30s.
1 parent 52a69e1 commit e194d75

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/groundlight/client.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,16 @@ class ApiTokenError(Exception):
2525

2626
class Groundlight:
2727
"""
28-
A convenience wrapper around the generated API classes.
28+
Client for accessing the Groundlight cloud service.
29+
2930
The API token (auth) is specified through the GROUNDLIGHT_API_TOKEN environment variable by default.
3031
3132
Example usage:
3233
```
3334
gl = Groundlight()
34-
detectors = gl.list_detectors()
35+
d = gl.get_or_create_detector("door", "Is the door locked?")
36+
iq = gl.submit_image_query(d, image)
37+
print(iq.result)
3538
```
3639
"""
3740

@@ -120,7 +123,7 @@ def submit_image_query(
120123
self,
121124
detector: Union[Detector, str],
122125
image: Union[str, bytes, BytesIO, BufferedReader, np.ndarray],
123-
wait: float = 0,
126+
wait: float = 30,
124127
) -> ImageQuery:
125128
"""Evaluates an image with Groundlight.
126129
:param detector: the Detector object, or string id of a detector like `det_12345`

0 commit comments

Comments
 (0)