example-gpt-v.md•705 B
---
layout: two-cols-header
---
# GenAIScript Example: Translate Any Diagram to Text
::left::

::right::
<v-click>
```js
script({
title: "explain-diagram",
description: "Given an image of a diagram,
explain what it contains",
model: "vision",
})
defImages(env.files)
$`You are a helpful assistant. Your goal
is to look at the image provided and write
a description of what it contains. You
should infer the context of the diagram,
and write a thorough description of what
the diagram is illustrating.`
```
</v-click>