Skip to content

Commit

Permalink
Merge pull request #180 from hermitgreen/master
Browse files Browse the repository at this point in the history
提高文生图查询接口sleep时间防止qps limit
  • Loading branch information
seiriosPlus authored Mar 13, 2024
2 parents bbfa7ec + 6576f0f commit 6e3cbcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion appbuilder/core/components/text_to_image/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def run(self, message: Message, width: int = 1024, height: int = 1024, image_num
task_progress = text2ImageQueryResponse.data.task_progress
if task_progress == 1:
break
time.sleep(0.2)
time.sleep(1)
img_urls = self.extract_img_urls(text2ImageQueryResponse)
out = Text2ImageOutMessage(img_urls=img_urls)
return Message(content=out.model_dump())
Expand Down

0 comments on commit 6e3cbcc

Please sign in to comment.