Skip to content

Commit 0eb5c1c

Browse files
committed
Updated README.MD
1 parent cb895d5 commit 0eb5c1c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.MD

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,24 @@ Instructions
1313
------
1414

1515
1. 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

2019
Examples
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+
2327
Moderate 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

3133
Moderate 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

0 commit comments

Comments
 (0)