Skip to content

Add/Remove Tags to Model Projects

Compare
Choose a tag to compare
@jean-lucas jean-lucas released this 16 Jun 20:06
· 120 commits to master since this release
076bb6e
  • Allow creation/deletion of model tags on new and existing models, eg:
# on model creation
model = client.create_model(name="foo_model", reference_id="foo-model-ref", tags=["some tag"])
# on existing models
existing_model = client.models[0]
existing_model.add_tags(['tag a', 'tag b'])
# remove tag
existing_model.remove_tags(['tag a'])