Skip to content

Commit 0369c45

Browse files
author
agrandiere
committed
change "face" into "faces"
1 parent 4f968aa commit 0369c45

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/all.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
####### check image
66

7-
checkAll = client.check('nudity', 'wad', 'properties', 'face', 'type')
7+
checkAll = client.check('nudity', 'wad', 'properties', 'faces', 'type')
88

99
output = checkAll.set_file('/path/to/local/file.jpg')
1010
output2 = checkAll.set_url('https://d3m9459r9kwism.cloudfront.net/img/examples/example7.jpg')

tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def test_nudityModel(self):
2222

2323
def test_allModel(self):
2424
client = SightengineClient('1234', 'test')
25-
checkAll = client.check('nudity','wad','properties','type','face','celebrities')
25+
checkAll = client.check('nudity','wad','properties','type','faces','celebrities')
2626

2727
image = os.path.join(os.path.dirname(__file__), 'assets', 'image.jpg')
2828

@@ -59,7 +59,7 @@ def test_feedback(self):
5959
def test_video(self):
6060
client = SightengineClient('1234', 'test')
6161

62-
check = client.check('nudity','wad','properties','type','face','celebrities')
62+
check = client.check('nudity','wad','properties','type','faces','celebrities')
6363
video_output = check.video('https://sightengine.com/assets/stream/examples/funfair.mp4', 'http://requestb.in/1nm1vw11')
6464
self.assertEqual('success', video_output['status'])
6565

0 commit comments

Comments
 (0)