From the course: Generative AI Imaging Tools for Developers

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Challenge: Conference booth design

Challenge: Conference booth design

(bright upbeat music) - [Instructor] Here's a challenge. I've modified the prompts in our application to generate designs for conference booths as opposed to stickers or invitations to meetups. What I want you to do is to modify the app further so that it uses Stable Diffusion code. I've brought our Stable Diffusion generate_image function to our app file, and here it is. I've also embedded the prompt right there, and you'll see that it returns the path. So it's similar to the functionality of the OpenAI API call combined with the functionality of load_image. Now the code I want you to modify is here at the API post endpoint, somewhere around here where we call the OpenAI API. So take about 15 to 25 minutes to complete this, and I'll see you in the next video.

Contents