@@ -263,8 +263,7 @@ def __image_upload(
263263 split = "train" ,
264264 batch_name = DEFAULT_BATCH_NAME ,
265265 tag_names = [],
266- ** kwargs
267-
266+ ** kwargs ,
268267 ):
269268 """function to upload image to the specific project
270269 :param image_path: path to image you'd like to upload.
@@ -381,7 +380,6 @@ def check_valid_image(self, image_path):
381380
382381 def upload (
383382 self ,
384-
385383 image_path : str = None ,
386384 annotation_path : str = None ,
387385 hosted_image : bool = False ,
@@ -390,7 +388,7 @@ def upload(
390388 num_retry_uploads : int = 0 ,
391389 batch_name : str = DEFAULT_BATCH_NAME ,
392390 tag_names : list = [],
393- ** kwargs
391+ ** kwargs ,
394392 ):
395393 """Upload image function based on the RESTful API
396394
@@ -441,8 +439,7 @@ def upload(
441439 num_retry_uploads = num_retry_uploads ,
442440 batch_name = batch_name ,
443441 tag_names = tag_names ,
444- ** kwargs
445-
442+ ** kwargs ,
446443 )
447444 else :
448445 images = os .listdir (image_path )
@@ -458,8 +455,7 @@ def upload(
458455 num_retry_uploads = num_retry_uploads ,
459456 batch_name = batch_name ,
460457 tag_names = tag_names ,
461- ** kwargs
462-
458+ ** kwargs ,
463459 )
464460 print ("[ " + path + " ] was uploaded succesfully." )
465461 else :
@@ -476,7 +472,7 @@ def single_upload(
476472 num_retry_uploads = 0 ,
477473 batch_name = DEFAULT_BATCH_NAME ,
478474 tag_names = [],
479- ** kwargs
475+ ** kwargs ,
480476 ):
481477 success = False
482478 annotation_success = False
0 commit comments