ComicStoryGenerator

class echo_artistry.generators.ComicStoryGenerator(client, output_path='comic_stories', max_retries=5, store_comic_story=True)

ComicStoryGenerator generates comic stories.

generate_story(text, composite_option: CompositeOption = CompositeOption.SINGLE_IMAGE, file_name='comic.txt')

Generate a comic description from a text.

Parameters:
  • text (str) – The text to generate the comic description from.

  • composite_option (CompositeOption) – The composite option for the comic.

  • file_name (str) – The name of the file to store the comic story.

Returns:

The generated description.

Return type:

str

rewrite_text_to_comic_story(text)

Rewrite a text to a comic story.

Parameters:

text (str) – The text to rewrite to a comic story.

Returns:

The comic story.

Return type:

str