Jl-wei commited on
Commit
d3f4491
·
verified ·
1 Parent(s): 2d08a59

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -8,9 +8,9 @@ Using with pipeline
8
  ```py
9
  from PIL import Image
10
 
11
- classifier = pipeline("image-classification", model="Jl-wei/app-intro-img-cropper", device=0)
12
  image = Image.open(img_path)
13
- result = classifier(image)
14
  ```
15
 
16
 
 
8
  ```py
9
  from PIL import Image
10
 
11
+ detector = pipeline("object-detection", model="Jl-wei/app-intro-img-cropper", device=0)
12
  image = Image.open(img_path)
13
+ result = detector(image, threshold=0.5)
14
  ```
15
 
16