Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions instill/helpers/ray_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,8 @@ def construct_task_text_to_image_output(
"""Construct trigger output for text to image task

Args:
images (List[List[str]]): for each input prompt, the generated images with the length of `samples`
images (List[List[str]]): for each input prompt,
the generated jpeg image base64 string with the length of `samples`
"""

if not len(finish_reasons) == len(images):
Expand All @@ -922,7 +923,7 @@ def construct_task_text_to_image_output(
choices.append(
{
"finish-reason": finish,
"image": img,
"image": f"data:image/jpeg;base64,{img}",
}
)
data["choices"] = choices
Expand Down