# Unconditional image and text generation. The generation task is automatically inferred.
sample = pipe(num_inference_steps=20, guidance_scale=8.0)
image = sample.images[0]
text = sample.text[0]
image.save("unidiffuser_joint_sample_image.png")
print(text)
```  
This is also called "joint" generation in the UniDiffuser paper, since we are sampling from the joint image-text distribution.  
Note that the generation task is inferred from the inputs used when calling the pipeline.