night at a haunted museum"))image_url    'https://oaidalleapiprodscus.blob.core.windows.net/private/org-i0zjYONU3PemzJ222esBaAzZ/user-f6uEIOFxoiUZivy567cDSWni/img-i7Z2ZxvJ4IbbdAiO6OXJgS3v.png?st=2023-08-11T14%3A03%3A14Z&se=2023-08-11T16%3A03%3A14Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2023-08-10T20%3A58%3A32Z&ske=2023-08-11T20%3A58%3A32Z&sks=b&skv=2021-08-06&sig=/sECe7C0EAq37ssgBm7g7JkVIM/Q1W3xOstd0Go6slA%3D'# You can click on the link above to display the image # Or you can try the options below to display the image inline in this notebooktry:    import google.colab    IN_COLAB = Trueexcept:    IN_COLAB = Falseif IN_COLAB:    from google.colab.patches import cv2_imshow # for image display    from skimage import io    image = io.imread(image_url)     cv2_imshow(image)else:    import cv2    from skimage import io    image = io.imread(image_url)     cv2.imshow('image', image)    cv2.waitKey(0)   #wait for a keyboard input    cv2.destroyAllWindows()Run as a tool with an agent‚Äãfrom langchain.agents import load_toolsfrom langchain.agents import initialize_agenttools = load_tools(['dalle-image-generator'])agent = initialize_agent(tools, llm, agent="zero-shot-react-description", verbose=True)output = agent.run("Create an image of a halloween night at a haunted museum")            > Entering new AgentExecutor chain...     What is the best way to turn this description into an image?    Action: Dall-E Image Generator    Action Input: A spooky Halloween night at a haunted
This notebook shows how you can generate images from a prompt synthesized using an OpenAI LLM. The images are generated using Dall-E, which uses the same OpenAI API key as the LLM.
This notebook shows how you can generate images from a prompt synthesized using an OpenAI LLM. The images are generated using Dall-E, which uses the same OpenAI API key as the LLM. ->: night at a haunted museum"))image_url    'https://oaidalleapiprodscus.blob.core.windows.net/private/org-i0zjYONU3PemzJ222esBaAzZ/user-f6uEIOFxoiUZivy567cDSWni/img-i7Z2ZxvJ4IbbdAiO6OXJgS3v.png?st=2023-08-11T14%3A03%3A14Z&se=2023-08-11T16%3A03%3A14Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2023-08-10T20%3A58%3A32Z&ske=2023-08-11T20%3A58%3A32Z&sks=b&skv=2021-08-06&sig=/sECe7C0EAq37ssgBm7g7JkVIM/Q1W3xOstd0Go6slA%3D'# You can click on the link above to display the image # Or you can try the options below to display the image inline in this notebooktry:    import google.colab    IN_COLAB = Trueexcept:    IN_COLAB = Falseif IN_COLAB:    from google.colab.patches import cv2_imshow # for image display    from skimage import io    image = io.imread(image_url)     cv2_imshow(image)else:    import cv2    from skimage import io    image = io.imread(image_url)     cv2.imshow('image', image)    cv2.waitKey(0)   #wait for a keyboard input    cv2.destroyAllWindows()Run as a tool with an agent‚Äãfrom langchain.agents import load_toolsfrom langchain.agents import initialize_agenttools = load_tools(['dalle-image-generator'])agent = initialize_agent(tools, llm, agent="zero-shot-react-description", verbose=True)output = agent.run("Create an image of a halloween night at a haunted museum")            > Entering new AgentExecutor chain...     What is the best way to turn this description into an image?    Action: Dall-E Image Generator    Action Input: A spooky Halloween night at a haunted