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.2.tar.gz
(2.1 kB
view hashes)
Built Distribution
Close
Hashes for cerebrate_sdk-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a24bd197d7381d588d41828c0e4d7f7b01760da9512a6e29205a3848848911d7 |
|
MD5 | bb697fb4a63815a101630e8817345fa9 |
|
BLAKE2b-256 | d1b9cfde5c1a78603ed35bf3de26f6cfc4df68b682ba68335f00e8a5508f06f6 |