Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: make HRIMessage use PIL.Image and pydub.AudioSegment #401

Merged
merged 2 commits into from
Feb 3, 2025

Conversation

rachwalk
Copy link
Contributor

@rachwalk rachwalk commented Feb 3, 2025

Purpose

Within RAI it is conveniant to be able to analyze and modify audio and image data, it only should be converted to/from base64 on interaction with LLMs. The most common datatype (fromat independent) for these is PIL.Image and pydub.AudioSegment respectively. It will improve development experiance,

Proposed Changes

This PR changes the internal representation of images and audio from base64 string to PIL.Image and pydub.AudioSegment.

Issues

#374

Testing

HRI tests were modfiied to account for new format.

@rachwalk rachwalk requested a review from maciejmajek February 3, 2025 16:03
Copy link
Member

@maciejmajek maciejmajek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@maciejmajek maciejmajek merged commit 37339bb into development Feb 3, 2025
5 checks passed
@maciejmajek maciejmajek deleted the refactor/hri-message-multimodal branch February 3, 2025 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants