Skip to content

Commit

Permalink
Update tutorial.md code to include missing import
Browse files Browse the repository at this point in the history
  • Loading branch information
discdiver authored Jan 16, 2024
1 parent e7dfdc6 commit 1fe50f4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/welcome/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@ Marvin gives you easy access to the DALL-E 3 image generation model. This model
!!! Example "Generating images"

```python
import marvin

marvin.paint("a simple cup of coffee, still warm")
```

Expand All @@ -300,7 +302,6 @@ If you've already got an image, you can convert it to text using the `caption` f
```python
import marvin


caption = marvin.beta.caption(marvin.beta.Image("path/to/coffee.png"))
```

Expand Down Expand Up @@ -333,7 +334,6 @@ These functions are available under `marvin.beta` and work identically to their

![](https://images.unsplash.com/photo-1548199973-03cce0bbc87b?q=80&w=2969&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D)


```python
import marvin

Expand All @@ -356,6 +356,7 @@ To learn more, please explore the docs or say hi in our [Discord community](http
And remember:

!!! Example "Don't panic!"

```python
import marvin

Expand All @@ -367,4 +368,4 @@ And remember:
<audio controls>
<source src="/assets/audio/dont_panic.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
</audio>

0 comments on commit 1fe50f4

Please sign in to comment.