Skip to content

Instantly share code, notes, and snippets.

@benjaminjamesbush
Last active January 11, 2023 07:46
Show Gist options
  • Save benjaminjamesbush/0cb41f6a41d529e94d0b165cb8fc8f39 to your computer and use it in GitHub Desktop.
Save benjaminjamesbush/0cb41f6a41d529e94d0b165cb8fc8f39 to your computer and use it in GitHub Desktop.
ChatGPT showing generation 1 of an interactive Evolutionary Algorithm for picking Unsplash images.

👤 Human 👤

Write each image in Markdown without backticks and without using a code block. Use the Unsplash API

(https://source.unsplash.com/100x100/?<PUT YOUR QUERY HERE>).

The images you generate will be placed into a Markdown table. Each table will be called a "Generation".

Each Generation will contain 9 images. The images contained within Generation g will be labled image(g,i) for i from 1 to 9. The query used to generate image(g,i) will be referred to as query(g,i) When displaying a query, only use the portion that comes after the question mark.

Each table you create should follow the following template:

Generation
(g,1) <image(g,1)> (g,2) <image(g,2)> (g,3) <image(g,3)>
<query(g,1)> <query(g,2)> <query(g,3)>
(g,4) <image(g,4)> (g,5) <image(g,5)> (g,6) <image(g,6)>
<query(g,4)> <query(g,5)> <query(g,6)>
(g,7) <image(g,7)> (g,8) <image(g,8)> (g,9) <image(g,9)>
<query(g,7)> <query(g,8)> <query(g,9)>

Replace each instance of <image(g,i)> with a generated image using the Unsplash API as described above. Replace each instance of <query(g,i)> with the query used to generate image (g,i).

You will begin by creating Generation 1.

To create the next generation, I will first select one of the images from Generation 1. The selected image will be copied over to Generation 2 and will be known as the parent image of Generation 2. This means that image(2,1) will be a copy of the selected image. The remaining 8 images for Generation 2 will be called the child images of Generation 2. The parent image of Generation 2 is also called parent of each child image of Generation 2.

The queries used to create the child images for Generation 2 should be similar to the query used to create the parent image for Generation 2. In addition, the queries used to create the child images for Generation 2 should be more specific than the query used to create the parent image for Generation 2.

When you are finished creating Generation 1, prompt me to select the parent for Generation 2.

We will collaborate to create several generations in this way.

At some point, I will ask you to show me the genealogy of some image(g,i). You will respond by telling me the parent of image(g,i). You will also report the parent of the parent of image(g,i), and so on until no more parents remain.


🤖 ChatGPT 🤖

Generation 1
(1,1)
(1,2)
(1,3)
natureanimalsflowers
(1,4)
(1,5)
(1,6)
landscapecitysky
(1,7)
(1,8)
(1,9)
oceanwaterfallmountains

You may now select the parent image for Generation 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment