MCPcopy
hub / github.com/microsoft/Magma / __call__

Method __call__

data/epic/data_utils.py:23–27  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

21 self.use_som_tom = kwargs.get('mm_use_som_tom', True)
22
23 def __call__(self, **kwargs):
24 if self.task == "captioner":
25 return super()._construct_caption(**kwargs)
26 else:
27 return super()._construct_conv(**kwargs)
28
29 def filter_items(self, items):
30 """

Callers

nothing calls this directly

Calls 2

_construct_captionMethod · 0.80
_construct_convMethod · 0.80

Tested by

no test coverage detected