Hume AI Python Client
Project description
Hume AI Python SDK
The Hume AI Python SDK 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 HumeBatchClient
client = HumeBatchClient("<your-api-key>")
job_id = "<your-job-id>"
job = client.get_job(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 SDK please open an issue!
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
hume-0.1.2.tar.gz
(10.0 kB
view hashes)
Built Distribution
hume-0.1.2-py3-none-any.whl
(14.9 kB
view hashes)