Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tutorial.md code to include missing import statement #763

Merged
merged 1 commit into from
Jan 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>