Skip to content

Commit c92ad06

Browse files
committed
refactor: Support the generated images horizontal tiling display
--story=1017907 --user=刘瑞斌 【越秀农牧】图片生成节点,生成的图片,希望可以支持横向平铺展示 https://www.tapd.cn/57709429/s/1659636
1 parent 1811a80 commit c92ad06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/application/flow/step_node/image_generate_step_node/impl/base_image_generate_node.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def execute(self, model_id, prompt, negative_prompt, dialogue_number, dialogue_t
4747
file_url = FileSerializer(data={'file': file, 'meta': meta}).upload()
4848
file_urls.append(file_url)
4949
self.context['image_list'] = [{'file_id': path.split('/')[-1], 'url': path} for path in file_urls]
50-
answer = '\n'.join([f"![Image]({path})" for path in file_urls])
50+
answer = ' '.join([f"![Image]({path})" for path in file_urls])
5151
return NodeResult({'answer': answer, 'chat_model': tti_model, 'message_list': message_list,
5252
'image': [{'file_id': path.split('/')[-1], 'url': path} for path in file_urls],
5353
'history_message': history_message, 'question': question}, {})

0 commit comments

Comments
 (0)