Skip to main content

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

  1. First, create an account on the AI Hero Platform
  2. Create an automation and train it.
  3. Create an API Key.
  4. Install this library
  5. 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


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)

Uploaded Source

Built Distribution

aihero-0.1.2-py2.py3-none-any.whl (7.9 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page