From 1fe50f4d176721e1fd487d75b00bfc32c23f5991 Mon Sep 17 00:00:00 2001 From: Jeff Hale Date: Tue, 16 Jan 2024 15:58:35 -0500 Subject: [PATCH] Update tutorial.md code to include missing import --- docs/welcome/tutorial.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/welcome/tutorial.md b/docs/welcome/tutorial.md index 6b87ff5e3..76af192b1 100644 --- a/docs/welcome/tutorial.md +++ b/docs/welcome/tutorial.md @@ -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") ``` @@ -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")) ``` @@ -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 @@ -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 @@ -367,4 +368,4 @@ And remember: \ No newline at end of file +