jiechau commited on
Commit
64e0bbd
·
verified ·
1 Parent(s): 170b5d8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -32,8 +32,8 @@ Determine whether online sales products are adult content. Input: image content,
32
  ```python
33
  from transformers import pipeline
34
  pipe = pipeline("image-classification", model="jiechau/adult-content-classifier")
35
- q = 'https://img.shopping.friday.tw/images/product/265/7951356/7951356_3_1.webp?172830' # regular
36
- q = 'https://img.shopping.friday.tw/images/product/259/7782883/7782883_3_1.webp?153546' # adult
37
  result = pipe(q)
38
  print(result)
39
  # [{'label': 'adult_成人商品', 'score': 0.7516837120056152}, {'label': 'regular_一般商品', 'score': 0.2475457787513733}, {'label': 'unknown', 'score': 0.0007705678581260145}]
 
32
  ```python
33
  from transformers import pipeline
34
  pipe = pipeline("image-classification", model="jiechau/adult-content-classifier")
35
+ q = 'https://xxx.xxx.xxx/images/xxx/xxx.webp'
36
+ q = 'https://xxx.xxx.xxx/images/xxx/xxx.jpg'
37
  result = pipe(q)
38
  print(result)
39
  # [{'label': 'adult_成人商品', 'score': 0.7516837120056152}, {'label': 'regular_一般商品', 'score': 0.2475457787513733}, {'label': 'unknown', 'score': 0.0007705678581260145}]