File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -13,24 +13,24 @@ Instructions
1313------
1414
15151 . Create an account on http://sightengine.com , you will get your own API_USER and API_SECRET values
16- 2 . Import the Sightengine package
17- 3 . Create a SightengineClient object and use it as shown in the example
16+ 2 . Import the Sightengine package and use the below examples to start using the API
1817
1918
2019Examples
2120--------
2221
22+ Import and create the SightengineClient object
23+
24+ from sightengine import client
25+ sightengine_client = client.SightengineClient("YOUR_API_USER", "YOUR_API_SECRET")
26+
2327Moderate an image accessible through a public URL:
2428
25- from sightengine import client
26- sightengine_client = client.SightengineClient("YOUR_API_USER", "YOUR_API_SECRET")
27- output = sightengine_client.check_nudity("http://img09.deviantart.net/2bd0/i/2009/276/c/9/magic_forrest_wallpaper_by_goergen.jpg ")
28- print output
29+ output = sightengine_client.check_nudity("http://img09.deviantart.net/2bd0/i/2009/276/c/9/magic_forrest_wallpaper_by_goergen.jpg")
30+ print output
2931
3032
3133Moderate a local image:
3234
33- from sightengine import client
34- sightengine_client = client.SightengineClient("YOUR_API_USER", "YOUR_API_SECRET")
35- output = sightengine_client.check_nudity("/full/path/to/image.jpg")
36- print output
35+ output = sightengine_client.check_nudity("/full/path/to/image.jpg")
36+ print output
You can’t perform that action at this time.
0 commit comments