diff --git a/README.md b/README.md index 28ccca2..d71d322 100644 --- a/README.md +++ b/README.md @@ -432,6 +432,10 @@ task = client.create_multi_image_task( ) ``` +##### Limitation + +* You can upload up to 250 files in total. + #### Find Task Find a single task. diff --git a/fastlabel/__init__.py b/fastlabel/__init__.py index f02b358..f19a83a 100644 --- a/fastlabel/__init__.py +++ b/fastlabel/__init__.py @@ -481,6 +481,11 @@ def create_multi_image_task( if not utils.is_image_supported_ext(file_path): raise FastLabelInvalidException( "Supported extensions are png, jpg, jpeg.", 422) + + if len(contents) == 250: + raise FastLabelInvalidException( + "The count of files should be under 250", 422) + file = utils.base64_encode(file_path) contents.append({ "name": os.path.basename(file_path),