Update README.md
Browse files
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://
|
36 |
-
q = 'https://
|
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}]
|