Ce programme utilise une IA générative pour créer une bande dessinée entière à partir d'un court scénario.
Le scénario doit mentionner les personnages avec une description physique.
Tout d'abord, une LLM (API OpenAI) est utilisée pour diviser le scénario en 6 panneaux avec leur description et leur texte associé.
Ensuite, pour chaque panneau:
Les 6 images générées avec leurs textes sont ensuite fusionnées dans une bande finale!
Exporter OPENAI_API_KEY et STABILITY_KEY . (Utilisez export OPENAI_API_KEY=xxx ou écrivez-les dans un fichier .env )
Installez les dépendances: pip install langchain openai stability-sdk pillow
L'oreiller doit être la version 9.50 maximum
Modifiez ensuite la variable SCENARIO dans kartoon.py.
Vous pouvez également modifier la variable STYLE pour changer le style.
Exécutez le script: python kartoon.py
Style Belgium Comic
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 style
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.

Style américain comique
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.
