ge The text2img mode requires that either an input prompt or prompt_embeds be supplied. You can set the text2img mode manually with UniDiffuserPipeline.set_text_to_image_mode().  Image-to-Text Generation Similarly, UniDiffuser can also produce text samples given an image (image-to-text or image-conditioned text generation):   Copied import torch

from diffusers import UniDiffuserPipeline
from diffusers.utils import load_image

device = "cuda"
m