fixbug: unit test

This commit is contained in:
莘权 马 2023-08-26 16:52:21 +08:00
parent 0821e6d099
commit 4fe3d6e879
2 changed files with 1 additions and 1 deletions

View file

@ -105,7 +105,7 @@ def oas3_metagpt_text_to_image(text, size_type: str = "512x512", model_url=""):
if __name__ == "__main__":
initialize_environment()
v = oas3_metagpt_text_2_image("Panda emoji")
v = oas3_metagpt_text_to_image("Panda emoji")
data = base64.b64decode(v)
with open("tmp.png", mode="wb") as writer:
writer.write(data)