Update README.md
Browse files
README.md
CHANGED
|
@@ -11,6 +11,7 @@ Code and dataset can be found at https://github.com/Jl-wei/guing
|
|
| 11 |
Using with pipeline
|
| 12 |
```py
|
| 13 |
from PIL import Image
|
|
|
|
| 14 |
|
| 15 |
classifier = pipeline("image-classification", model="Jl-wei/app-intro-img-classifier", device=0)
|
| 16 |
image = Image.open(img_path)
|
|
|
|
| 11 |
Using with pipeline
|
| 12 |
```py
|
| 13 |
from PIL import Image
|
| 14 |
+
from transformers import pipeline
|
| 15 |
|
| 16 |
classifier = pipeline("image-classification", model="Jl-wei/app-intro-img-classifier", device=0)
|
| 17 |
image = Image.open(img_path)
|