Este programa usa IA generativa para criar uma história em quadrinhos inteira a partir de um cenário curto.
O cenário deve mencionar os personagens com uma descrição física.
Primeiro, um LLM (API OpenAI) é usado para dividir o cenário em 6 painéis com sua descrição e texto associado.
Então para cada painel:
As 6 imagens geradas com seus textos são então mescladas em uma faixa final!
Exportar OPENAI_API_KEY e STABILITY_KEY . (Use export OPENAI_API_KEY=xxx ou escrevê -los em um arquivo .env )
Instale dependências: pip install langchain openai stability-sdk pillow
O travesseiro deve ser a versão 9.50 máximo
Em seguida, edite a variável SCENARIO em kartoon.py.
Você também pode editar a variável STYLE para alterar o estilo.
Execute o script: python kartoon.py
Estilo Comic 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.

Mangá 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 americano em quadrinhos
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.
