Skip to main content

Hume AI Python Client

Project description

Hume AI Python Client

The Hume AI Python client makes it easy to call Hume APIs from Python applications.

To get started, sign up for a Hume account!

Requirements

Python versions between 3.8 and 3.10 are supported

Installation

pip install hume

Example Usage

Submit a new batch job

Note: Your personal API key can be found in the profile section of beta.hume.ai

from hume import HumeBatchClient

client = HumeBatchClient("<your-api-key>")
urls = ["https://tinyurl.com/hume-img"]
job = client.submit_face(urls)

print(job)
print("Running...")

result = job.await_complete()
result.download_predictions("predictions.json")

print("Predictions downloaded!")

Rehydrate a batch job from a job ID

from hume import BatchJob, HumeBatchClient

client = HumeBatchClient("<your-api-key>")

job_id = "<your-job-id>"
job = BatchJob(client, job_id)

print(job)

Documentation

Learn more about Hume's expressive communication platform on our homepage or our platform docs

See example requests and responses for all available endpoints in the Hume API Reference

Support

If you've found a bug with this client please open an issue!

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

hume-0.1.0.tar.gz (9.5 kB view hashes)

Uploaded Source

Built Distribution

hume-0.1.0-py3-none-any.whl (14.4 kB view hashes)

Uploaded 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