Este programa utiliza AI generativo para crear una tira cómica completa a partir de un escenario corto.
El escenario debe mencionar a los personajes con una descripción física.
Primero, se utiliza un LLM (API de OpenAI) para dividir el escenario en 6 paneles con su descripción y texto asociado.
Luego para cada panel:
¡Las 6 imágenes generadas con sus textos se fusionan en una tira final!
Exportar OPENAI_API_KEY y STABILITY_KEY . (Use export OPENAI_API_KEY=xxx o escríbalos en un archivo .env )
Dependencias de instalación: pip install langchain openai stability-sdk pillow
La almohada debe ser la versión 9.50 máximo
Luego edite la variable SCENARIO en kartoon.py.
También puede editar la variable STYLE para cambiar el estilo.
Ejecute el guión: python kartoon.py
Estilo cómic de bélgica
Characters: Francis is medieval knight with a shield. Madeline is a princess with long hair.
Francis hear about a dragon that is terrorizing the kingdom.
He goes to the castle to kill the dragon in an epic battle.
The princess is angry because the dragon was her friend.

Manga de estilo
Characters: Adrien is a guy with blond hair. Vincent is a guy with black hair.
Adrien and Vincent work at the office and want to start a new product.
They create it in one night before presenting it to the board.

Estilo cómic americano
Characters: Peter is a tall guy with blond hair. Steven is a small guy with black hair.
Peter and Steven walk together in new york when aliens attack the city.
They are afraid and try to run for their lives.
The army arrive and save them.
