Skip to content

Commit 7f469d9

Browse files
authored
Merge pull request #18 from fastlabel/develop
Merge to main
2 parents 8d8328b + 8557e47 commit 7f469d9

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ Supported following project types:
199199
```python
200200
task = client.create_multi_image_task(
201201
project="YOUR_PROJECT_SLUG",
202-
name="sample.jpg",
202+
name="sample",
203203
folder_path="./sample",
204204
annotations=[{
205205
"value": "annotation-value",
@@ -209,6 +209,7 @@ task = client.create_multi_image_task(
209209
"value": "attribute-value"
210210
}
211211
],
212+
"content": "01.jpg",
212213
"points": [[[
213214
100,
214215
100,

fastlabel/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,10 @@ def create_multi_image_task(
251251
annotations is a list of annotation to be set in advance. (Optional)
252252
tags is a list of tag to be set in advance. (Optional)
253253
"""
254+
if not os.path.isdir(folder_path):
255+
raise FastLabelInvalidException(
256+
"Folder does not exist.", 422)
257+
254258
endpoint = "tasks/multi/image"
255259
file_paths = glob.glob(os.path.join(folder_path, "*"))
256260
contents = []

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
setuptools.setup(
1010
name="fastlabel",
11-
version="0.4.0",
11+
version="0.4.1",
1212
author="eisuke-ueta",
1313
author_email="eisuke.ueta@fastlabel.ai",
1414
description="The official Python SDK for FastLabel API, the Data Platform for AI",

0 commit comments

Comments
 (0)