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.1.tar.gz
(5.2 kB
view hashes)
Built Distribution
Close
Hashes for aihero-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92b16ae901680942388bd2146f2c05efc4fdc4235218b2a1cb4a7d4258a0c3ce |
|
MD5 | e8dda45a2abe5889fdec6dda8628a6a1 |
|
BLAKE2b-256 | 633ce45db7f83a0ec61db89dc9ac8e15d302327c368803662045e25bfb7d4e72 |