Skip to content

Commit

Permalink
shorten image width
Browse files Browse the repository at this point in the history
  • Loading branch information
jlowin committed Jan 17, 2024
1 parent 9dae581 commit 51bbb1e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
10 changes: 6 additions & 4 deletions docs/docs/vision/extraction.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,20 @@ The `marvin.beta.extract` function is an enhanced version of `marvin.extract` th

We will extract the breed of each dog in this image:

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


```python
import marvin

img = marvin.beta.Image('https://images.unsplash.com/photo-1548199973-03cce0bbc87b?q=80&w=2969&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D')
img = marvin.beta.Image(
"https://images.unsplash.com/photo-1548199973-03cce0bbc87b?",
)

result = marvin.beta.extract(img, target=str, instructions='dog breeds')
result = marvin.beta.extract(img, target=str, instructions="dog breeds")
```

!!! success "Result"
```python
result == ['Pembroke Welsh Corgi', 'Yorkshire Terrier']
result == ["Pembroke Welsh Corgi", "Yorkshire Terrier"]
```
6 changes: 4 additions & 2 deletions docs/welcome/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -329,12 +329,14 @@ These functions are available under `marvin.beta` and work identically to their

Let's identify the breed of each dog in this image by using the beta `extract` function.

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

```python
import marvin

img = marvin.beta.Image('https://images.unsplash.com/photo-1548199973-03cce0bbc87b?q=80&w=2969&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D')
img = marvin.beta.Image(
'https://images.unsplash.com/photo-1548199973-03cce0bbc87b',
)

result = marvin.beta.extract(img, target=str, instructions='dog breeds')
```
Expand Down

0 comments on commit 51bbb1e

Please sign in to comment.