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 = (
22- "https://rogilvkqloanxtvjfrkm.supabase.co/storage/v1/object/public/demo/Collabo%201080x842.jpg"
23- )
21+ IMAGE_URL = "https://rogilvkqloanxtvjfrkm.supabase.co/storage/v1/object/public/demo/Collabo%201080x842.jpg"
2422
2523TEST_CASES = [
2624 {
4947 "name" : "with_blob_both_features" ,
5048 "blob" : IMAGE_URL ,
5149 "options" : {
52- "features" : ["object_detection " , "gui" ],
50+ "features" : ["object " , "gui" ],
5351 "annotated_image" : True ,
5452 "return_type" : "url" ,
5553 },
6361 "name" : "with_blob_object_detection_features" ,
6462 "blob" : IMAGE_URL ,
6563 "options" : {
66- "features" : ["object_detection " ],
64+ "features" : ["object " ],
6765 "annotated_image" : True ,
6866 "return_type" : "base64" ,
6967 },
8078 "name" : "with_all_options" ,
8179 "blob" : IMAGE_URL ,
8280 "options" : {
83- "features" : ["object_detection " , "gui" ],
81+ "features" : ["object " , "gui" ],
8482 "prompts" : ["car" , "road" , "tree" ],
8583 "annotated_image" : True ,
8684 "return_type" : "base64" ,
@@ -104,7 +102,9 @@ def test_object_detection(self, test_case):
104102 if test_case .get ("blob" ):
105103 # Download blob content
106104 blob_content = requests .get (test_case ["blob" ]).content
107- result = jigsaw .vision .object_detection (blob_content , test_case .get ("options" , {}))
105+ result = jigsaw .vision .object_detection (
106+ blob_content , test_case .get ("options" , {})
107+ )
108108 else :
109109 # Use params directly
110110 result = jigsaw .vision .object_detection (test_case ["params" ])
0 commit comments