MCPcopy
hub / github.com/MaartenGr/BERTopic / check_has_visual_aspect

Function check_has_visual_aspect

bertopic/_save_utils.py:401–406  ·  view source on GitHub ↗

Check if model has visual aspect.

(model)

Source from the content-addressed store, hash-verified

399
400
401def check_has_visual_aspect(model):
402 """Check if model has visual aspect."""
403 if _has_vision:
404 for aspect, value in model.topic_aspects_.items():
405 if isinstance(value[0], Image.Image):
406 return True
407
408
409def save_images(model, path: str):

Callers 1

generate_readmeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected