AI Hero Python SDK
Project description
AI Hero Python SDK
Go from Zero to ML in minutes.
With AI Hero, you can protototype ML models to power your product features, automate routine tasks, and analyze customer feedback - all with a simple, no-code, self-serve platform. Choose from our growing list of automations to tag text, recommend products, tag images, detect customer sentiment, and other tasks!
Usage
- First, create an account on the AI Hero Platform
- Create an automation and train it.
- Create an API Key.
- Install this library
- Start using it:
from aihero import Client
# Create the client, which connects to AI Hero server.
client = Client()
# Get the automation object, using the automation id and your API key for that automation.
automation = client.get_automation(automation_id='<YOUR_AUTOMATION_ID>', api_key='<YOUR_API_KEY>')
# Predict using your trained automation.
# For example, for detecting sentiment in short text:
prediction = automation.predict(text="This works great!")
# predction object:
# {'explanation': 'The sentiment is positive', 'tags': {'negative': 0.00013113021850585938, 'positive': 0.9998688697814941}}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aihero-0.1.2.tar.gz
(6.2 kB
view hashes)
Built Distribution
Close
Hashes for aihero-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89147a09a72b49c003ae46cf271cbf6e2fb044418f3a8d4fa9de5ff248d09f29 |
|
MD5 | 628a0af9eef492e3657db56f83d75530 |
|
BLAKE2b-256 | 487ffa57e92bf1bf30900e3a4f1afe2dea86bc525cd240b6ee8360d536aa3f52 |