Skip to content

Commit 5ab170a

Browse files
committed
GenAI csv upload
1 parent 1d5eea6 commit 5ab170a

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

src/superannotate/lib/app/interface/sdk_interface.py

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2657,7 +2657,7 @@ def attach_items(
26572657
:return: uploaded, failed and duplicated item names
26582658
:rtype: tuple of list of strs
26592659
2660-
Example:
2660+
Example for Vector, Video, Document, PointCloud projects:
26612661
::
26622662
26632663
client = SAClient()
@@ -2666,6 +2666,23 @@ def attach_items(
26662666
attachments=[{"name": "item", "url": "https://..."}]
26672667
)
26682668
2669+
Example for GenAI projects:
2670+
::
2671+
2672+
client = SAClient()
2673+
client.attach_items(
2674+
project="Medical Annotations",
2675+
attachments=[
2676+
{
2677+
"_item_name": "item",
2678+
"_folder": "QA1",
2679+
"_item_category": "karyology",
2680+
"component_id_0": "val",
2681+
...
2682+
}
2683+
]
2684+
)
2685+
26692686
Example of attaching items from custom integration:
26702687
::
26712688

0 commit comments

Comments
 (0)