MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / apply_stats

Method apply_stats

utils/src/multimodal.py:36–43  ·  view source on GitHub ↗

Apply image captions to the presentation.

(self)

Source from the content-addressed store, hash-verified

34 self.image_stats[pbasename(name)] = stat
35
36 def apply_stats(self):
37 """
38 Apply image captions to the presentation.
39 """
40 for slide in self.presentation.slides:
41 for shape in slide.shape_filter(Picture):
42 stats = self.image_stats[pbasename(shape.img_path)]
43 shape.caption = stats["caption"]
44
45 def caption_images(self):
46 """

Callers 1

caption_imagesMethod · 0.95

Calls 1

shape_filterMethod · 0.45

Tested by

no test coverage detected