MCPcopy Create free account
hub / github.com/OpenBMB/BMTools / imagecaption

Function imagecaption

bmtools/tools/gradio_tools/api.py:31–35  ·  view source on GitHub ↗

Creating a caption for an image.

(input : str)

Source from the content-addressed store, hash-verified

29 return qa.run(input)
30 @tool.get("/get_imagecaption")
31 def imagecaption(input : str)-> str:
32 '''Creating a caption for an image.
33 '''
34 ic = ImageCaptioningTool()
35 return ic.run(input)
36 @tool.get("/get_promptgenerator")
37 def promptgenerator(input : str)-> str:
38 '''Generating a prompt for stable diffusion and other image and video generators based on text input.

Callers

nothing calls this directly

Calls 2

ImageCaptioningToolClass · 0.90
runMethod · 0.45

Tested by

no test coverage detected