""" 文生图所需函数 """ def gen_img(txt): """ 生图功能函数,输入文本返回图片 """ img = txt return img