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

Function stablediffusion

bmtools/tools/gradio_tools/api.py:43–47  ·  view source on GitHub ↗

generate images based on text input.

(input : str)

Source from the content-addressed store, hash-verified

41 return pg.run(input)
42 @tool.get("/get_stablediffusion")
43 def stablediffusion(input : str)-> str:
44 '''generate images based on text input.
45 '''
46 sd = StableDiffusionTool()
47 return sd.run(input)
48 @tool.get("/get_texttovideo")
49 def texttovideo(input : str)-> str:
50 '''Creating videos from text.

Callers

nothing calls this directly

Calls 2

StableDiffusionToolClass · 0.90
runMethod · 0.45

Tested by

no test coverage detected