Cerebrate SDK
Project description
Cerebrate SDK
Install
with poetry
poetry add cerebrate-sdk
or with pip
pip install cerebrate-sdk
Examples
Fake email detector
from cerebrate_sdk import Cerebrate
c = Cerebrate('YOUR_API_KEY')
task = "Detect if email is fake or real"
examples = [
"qwertyuiooiu@ihdj.com: fake"
"support@cerebrate.ai: real",
]
result = c.predict(task, examples, "lajotig138@5k2u.com: ")
print(result[0])
# fake
Raw usage
from cerebrate_sdk import Cerebrate
c = Cerebrate("YOUR_API_KEY")
result = c.raw("Suggest the next item for user's cart."
"Cart: bacon, eggs, tomatoes"
"Suggested item: ")
print(result[0])
# sausage
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cerebrate-sdk-0.1.3.tar.gz
(2.1 kB
view hashes)
Built Distribution
Close
Hashes for cerebrate_sdk-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 752e35c43877e7e58d3fe6b55a5aaf67fb7105088ce87b5adb7cc68da4825576 |
|
MD5 | ea8d752a9daae14483c2a242cc20cad2 |
|
BLAKE2b-256 | 1ea2ffad8920bebbb5ea3e0102725c5059b5a66a73159c132e21bb2e46d8174e |