OK this might be a stupid question, but how can I put two times the same output? I want the AI generated image and the accompanying sentence, but they are different. Please help! You can look at the code, please help me have the ai image be the same prompt as the sentences displayed.

  • @wthit56
    link
    English
    11 day ago

    Save the evaluated prompt text first. Then use that for the image options object, and the display of the text in the page.

    To evaluate a randomising piece of text like that, reference it like this: [output.evaluateItem]

    To save that into a variable, do something like this: [final_output = output.evaluateItem] Have that run before referencing it using [final_output] in the image options, and in the page.

  • @elouanOP
    link
    English
    11 day ago

    Oh! I kind of got it…