MCPcopy Index your code
hub / github.com/chenfei-wu/TaskMatrix / inference

Method inference

visual_chatgpt.py:508–514  ·  view source on GitHub ↗
(self, inputs)

Source from the content-addressed store, hash-verified

506 "detect the sketch from this image. "
507 "The input to this tool should be a string, representing the image_path")
508 def inference(self, inputs):
509 image = Image.open(inputs)
510 scribble = self.detector(image, scribble=True)
511 updated_image_path = get_new_image_name(inputs, func_name="scribble")
512 scribble.save(updated_image_path)
513 print(f"\nProcessed Image2Scribble, Input Image: {inputs}, Output Scribble: {updated_image_path}")
514 return updated_image_path
515
516
517class ScribbleText2Image:

Callers

nothing calls this directly

Calls 1

get_new_image_nameFunction · 0.85

Tested by

no test coverage detected