2

Generating Children's Stories Using GPT-3 and DALL·E

 1 year ago
source link: https://www.surgehq.ai//blog/generating-childrens-stories-using-gpt-3-and-dall-e
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
62bbd7f789b7002f237d2063_aladdin.png

A whole new world of AI awaits

Imagine being 5 years old, dreaming of new adventures for Pikachu and Aladdin, and turning those tales into a cartoon right in front of your eyes… (Perhaps even with you as the main character!) What kinds of new storybook experiences could GPT-3 and DALL·E enable?

My own kindergartener, Noah, loves new bedtime stories, so let’s find out.

GPT-3 Story Generation

First, I asked Noah what story he wanted. In his slightly paraphrased words: “I want a story about Ash and Pikachu commanding an army of Pokemon. They're attacking Team Rocket and enemy Pokemon from the land and ocean.”

I then asked GPT-3 to flesh out the story:

62bb745889868a47c3f3bb3c_IlB-TYxtuvn3mfN4bam64yWLSW8NooJVjLkUanUMh5Dj-2xnnqo7eONzaRHQeuFmNgEusbrHZu4r00W1BPzm53CK4pRbyP4ehQy6_Jyjm7OSKkiRvi-n4N1gumpZR38fNOkmq9hZ233d0JeemQ.png

GPT-3 fleshes out a story about Ash and Pikachu vs. Team Rocket

It was a dark and stormy night, and Ash and Pikachu were leading their army of Pokemon into battle against Team Rocket and their enemy Pokemon. From the land came the sound of thundering footsteps and from the sea came the sound of crashing waves. The two sides met in the middle of the battlefield, and the battle began.

Pikachu and his army of electric-type Pokemon struck first, blasting the enemy with powerful thunderbolts. Team Rocket's Pokemon were no match for the might of Pikachu and his friends, and they soon began to retreat.

But the enemy Pokemon from the sea were not so easily defeated. They launched a counterattack with water-type moves, drenching Ash and Pikachu's army.

But Ash and Pikachu would not give up. They rallied their troops and fought back with everything they had. In the end, they emerged victorious, and the enemy was defeated.

Roald Dahl, watch out.

DALL·E Illustrations

Next, DALL·E generated visuals for the story. Inputting the raw sentences themselves didn’t work so well, so I tweaked them to improve the illustrations.

Here’s the storybook!

It was a dark and stormy night, and Ash and Pikachu were leading their army of Pokemon into battle against Team Rocket and their enemy Pokemon.

62bb7459d3b3c89b945368c8_ApucvO2nLC93o55Nu5wtVn6AymcMoyj_nvNTLM9Qub2y1Y-rYQPwz0HWoWdC5g3IDYpWa3OOBoeutQ1wU9vC-7zGqQUCqdIBJpJ9n88PZdp9aT2UPgWR5PJsxPJn3huzTiB9z6imNPixc7vlOA.png
62bb7459e4b7d252016889ce_uO9fbdGXgNtjf8-YORknzMKbVUFJPGaDnbxGMzCRlT7RHqHjSpAwj7ePjuHtdI0EmXx4qiNJevpkDBMl253wWaxt9utQ63FUhh8cS9DisQpijXAbg4HHqmD_X77lqpHbDqQVbnfb6tIRJ3GPpQ.png
62bb7459be9e0ace0e3c3eab_I1jXdeifi6lgxK0y5_9WSywzXRo_oeM29nsfMkxlkkczCHEcIj-J60dukXXT1YhubpEJOc9ljzk91TiJCanDjpX-TG-wd70GISHALDY3q3mj05pKB7iT6fnndtdi2QRinuYn1vkZ6PZb9EhoVw.png

From the land came the sound of thundering footsteps and from the sea came the sound of crashing waves.

62bb7459a1d2660228d6f88c_NayOvC8fA8tJhJdGDXQE5LAH2oBAApzOCDaPj-iVdr_Z1QucakYdndaJbZfBAL5iNd14wr-SMx2o2z6AfK0tuQBjTLHaA-nodE4UDsmnJPtslM-WdjPVwhXdrs5R5ORFi0C8oYiiKHFMuWv1Fg.png

The two sides met in the middle of the battlefield, and the battle began.

62bb7459a0ee4638ba59b262_jkSo732BeGQNSf5YaN5O4WTX8v3-ZZJZPutn21HCcasAoHHB8sMBH5KDng1o9958FXYQyluxiveWzHQ_2amvpLVZCSDi0nVFxAY3_ovrk_vxQPDU22gsQ1FeNKC_-glWoLdUC6uMrKUS49-xNQ.png

Pikachu and his army of electric-type Pokemon struck first, blasting the enemy with powerful thunderbolts.

62bb745af1a69c24754d3367_lKb7G2r4jP40CUDCvwnZJGUKh80VqkYJYvcPLHhPxte3HP6aC8-lw-_nP_3VJcPMVi5-OZhcKe8jp8lkvxgqL9mNu0btVvLid6WU5xcMnZ_6FTtKOsvoNjCm3WONL5uwnS_QHTLb_Zwp9Dc1bA.png

Team Rocket's Pokemon were no match for the might of Pikachu and his friends, and they soon began to retreat.

62bb7ffb165404a2c4a62ffe_d5.png

But the enemy Pokemon from the sea were not so easily defeated. They launched a counterattack with water-type moves, drenching Ash and Pikachu's army.

62bb745a76d06c4afba28af4_yOeYVb3uCbgRPU6bBaX_8Dn_m-fMXpE9KQ-8NHOVTuQTGAfvkgsbvVXQHwNBj5Ys1atLTuaoBPS4WPG8g0Dcb8Qqg3ZpY-ztBBsQItBAx8B1KR_tQJVHGQD0fDlX04tS6RMrgRUmZAp7IcylLw.png

But Ash and Pikachu would not give up. They rallied their troops and fought back with everything they had.

62bb745ace9374f1fd7b93d9_vZxCg62SvefyQRMOQ87hrY4MnVxqiNKz4QOiHIKsUwnEhkix7by87r9efDbIxVVoibTCC__xg9ozx6X-4M_Cobh6REIeeKxxzOujLwJOWdP6OwnXudy65ZPY2DVdPQ8g34Q08iLd93U8oyRXvA.png

In the end, they emerged victorious, and the enemy was defeated.

62bb745b0a345ac18bcd7ab8_JCvE8RcgEg1UCuCZ6zOWuvj1KhjTgvtLr-2bKXXahqZ6X0efEtQoZGUR2d2OcRfQxfi4ybgxcD5QGDUG8Z9EhyUeJoenSq5pgrlbde6Ne49Z3bYwdUj17clY5aQT-0fbOXG41CtL_oGcxgdV7Q.png
62bb745ab1d2d8458633ccae_ydKIoYYX-tyYOhxeKrd7L8DikrlKqBDeyQYXk7F4NOTxUY4_yKmswSFu17wypzFN8cx786YOGskOj4VvUlQkm6XCOHdOHgIENgJGQy4fuXfckcgcBrZPDyvjJxG8KS6iZW6UrB8WzAiB6abWuw.png

What a time to be a child.

Want to see how Noah reacts and rates the story? Do you think he'll love it or have nightmares for days? (At Surge AI, we start training our data labelers from a young age.) Stay tuned and follow our @HelloSurgeAI Twitter account for updates as I read the story to him tonight…


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK