File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed
Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -215,9 +215,7 @@ def vocr(
215215 return resp
216216
217217 @overload
218- def object_detection (
219- self , params : ObjectDetectionParams
220- ) -> ObjectDetectionResponse : ...
218+ def object_detection (self , params : ObjectDetectionParams ) -> ObjectDetectionResponse : ...
221219 @overload
222220 def object_detection (
223221 self , blob : bytes , options : ObjectDetectionParams = None
@@ -297,9 +295,7 @@ async def vocr(
297295 return resp
298296
299297 @overload
300- async def object_detection (
301- self , params : ObjectDetectionParams
302- ) -> ObjectDetectionResponse : ...
298+ async def object_detection (self , params : ObjectDetectionParams ) -> ObjectDetectionResponse : ...
303299 @overload
304300 async def object_detection (
305301 self , blob : bytes , options : ObjectDetectionParams = None
Original file line number Diff line number Diff line change 1818jigsaw = jigsawstack .JigsawStack (api_key = os .getenv ("JIGSAWSTACK_API_KEY" ))
1919async_jigsaw = jigsawstack .AsyncJigsawStack (api_key = os .getenv ("JIGSAWSTACK_API_KEY" ))
2020
21- IMAGE_URL = "https://rogilvkqloanxtvjfrkm.supabase.co/storage/v1/object/public/demo/Collabo%201080x842.jpg"
21+ IMAGE_URL = (
22+ "https://rogilvkqloanxtvjfrkm.supabase.co/storage/v1/object/public/demo/Collabo%201080x842.jpg"
23+ )
2224
2325TEST_CASES = [
2426 {
@@ -102,9 +104,7 @@ def test_object_detection(self, test_case):
102104 if test_case .get ("blob" ):
103105 # Download blob content
104106 blob_content = requests .get (test_case ["blob" ]).content
105- result = jigsaw .vision .object_detection (
106- blob_content , test_case .get ("options" , {})
107- )
107+ result = jigsaw .vision .object_detection (blob_content , test_case .get ("options" , {}))
108108 else :
109109 # Use params directly
110110 result = jigsaw .vision .object_detection (test_case ["params" ])
You can’t perform that action at this time.
0 commit comments