Generate an image for ``prompt`` and return a URL or local file path. Replace this with a call to your text-to-image model. The returned value is passed directly to the judge, so it must be a reachable URL or a local path.
(prompt: str)
| 143 | |
| 144 | |
| 145 | def text_to_image(prompt: str) -> str: |
| 146 | """Generate an image for ``prompt`` and return a URL or local file path. |
| 147 | |
| 148 | Replace this with a call to your text-to-image model. The returned value is |
| 149 | passed directly to the judge, so it must be a reachable URL or a local path. |
| 150 | """ |
| 151 | raise NotImplementedError( |
| 152 | "Implement text_to_image() to generate an image from the (enhanced) " |
| 153 | "prompt and return its URL or local file path." |
| 154 | ) |
| 155 | |
| 156 | |
| 157 | # --------------------------------------------------------------------------- # |