article_writer / test.py
aliasgerovs's picture
Updated with latest
d994b45
raw
history blame
257 Bytes
import requests
from pprint import pprint
response = requests.post(
"https://api.sapling.ai/api/v1/aidetect",
json={
"key": "60L9BPSVPIIOEZM0CD1DQWRBPJIUR7SB",
"text": "This is sample text."
}
)
pprint(response.json()['score'])