."

image = pipe(prompt, num_inference_steps=50).images[0]
image.save("character.png")

maybe_convert_prompt

<
source
>
(
prompt: typing.Union[str, typing.List[str]]
tokenizer: PreTrainedTokenizer

)
→
str or list of str

Parameters 

prompt (str or list of str) —
The prompt or prompts to guide the image generation.


tokenizer (PreTrainedTokenizer) —
The tokenizer responsible for encoding the prompt into input tokens.


Returns

str or list o