hume-python-sdk icon indicating copy to clipboard operation
hume-python-sdk copied to clipboard

bytes argument to HumeBatchClient.submit_job() instead of only accepting file paths

Open josh3io opened this issue 1 year ago • 2 comments

allow sending a file as bytes to the batch API.

Not sure how you feel about merge commits here...I wrote this before the latest release.

    client = HumeBatchClient(getenv("HUME_API_KEY"), timeout=300)
    configs = [
        BurstConfig(),
        ProsodyConfig(),
    ]

    with audio_filepath.open("rb") as f:
        audio_file_bytes = f.read()

    job = client.submit_job(
        [],
        configs=configs,
        filebytes=[(f"{audio_fake_filename}", audio_file_bytes)],
    )

josh3io avatar Apr 23 '24 23:04 josh3io

Thanks for the pull request @josh3io! Our team is a bit busy with the product launch, but we'll try to get back to you next week with a review!

gregorybchris avatar Apr 26 '24 00:04 gregorybchris

Yeah no worries hope your team and the community finds it helpful

On Thu, Apr 25, 2024 at 5:23 PM Chris Gregory @.***> wrote:

Thanks for the pull request @josh3io https://github.com/josh3io! Our team is a bit busy with the product launch, but we'll try to get back to you next week with a review!

— Reply to this email directly, view it on GitHub https://github.com/HumeAI/hume-python-sdk/pull/121#issuecomment-2078385055, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACD6KYRWTIYB4GPLVV7KMSDY7GNBRAVCNFSM6AAAAABGV2TEESVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZYGM4DKMBVGU . You are receiving this because you were mentioned.Message ID: @.***>

josh3io avatar Apr 26 '24 00:04 josh3io

Tests are passing (finally), but I will do a few more manual tests before merging

gregorybchris avatar Jun 14 '24 11:06 gregorybchris

Thanks for your contribution and patience @josh3io !!

gregorybchris avatar Jun 18 '24 22:06 gregorybchris

Thanks Chirs and team for a great product and your help with final integration on this PR!

On Tue, Jun 18, 2024 at 3:03 PM Chris Gregory @.***> wrote:

Thanks for your contribution and patience @josh3io https://github.com/josh3io !!

— Reply to this email directly, view it on GitHub https://github.com/HumeAI/hume-python-sdk/pull/121#issuecomment-2177154300, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACD6KYQDFYVZ4IDAOA3KKB3ZICVCXAVCNFSM6AAAAABGV2TEESVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZXGE2TIMZQGA . You are receiving this because you were mentioned.Message ID: @.***>

josh3io avatar Jun 25 '24 19:06 josh3io