Skip to content

Commit 112c7f9

Browse files
authored
Update open_clip.md (#1485)
Add import requests line
1 parent 6e6ef80 commit 112c7f9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/hub/open_clip.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Once loaded, you can encode the image and text to do [zero-shot image classifica
3434
```py
3535
import torch
3636
from PIL import Image
37+
import requests
3738

3839
url = 'http://images.cocodataset.org/val2017/000000039769.jpg'
3940
image = Image.open(requests.get(url, stream=True).raw)

0 commit comments

Comments
 (0)