MCPcopy Create free account
hub / github.com/FastMAS/KVCOMM / IMGReader

Class IMGReader

KVCOMM/tools/reader/readers.py:241–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239
240
241class IMGReader(Reader):
242 def parse(self, file_path: Path, task: str = "Describe this image as detail as possible." ) -> str:
243 logger.info(f"Reading image file from {file_path}.")
244 runner = VisualLLMRegistry.get()
245 answer = runner.gen(task, file_path)
246 return answer
247
248class VideoReader(Reader):
249 def parse(self, file_path: Path, task: str = "Describe this image as detail as possible.", frame_interval: int = 30, used_audio: bool = True) -> list:

Callers 1

readers.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected