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

[editor] HuggingFaceImage2TextTransformerPromptSchema #848

Merged
merged 3 commits into from
Jan 10, 2024
Merged

Conversation

rholinshead
Copy link
Contributor

@rholinshead rholinshead commented Jan 10, 2024

[editor] HuggingFaceImage2TextTransformerPromptSchema

[editor] HuggingFaceImage2TextTransformerPromptSchema

Get the input schema implemented so the input renders. Need to add model_settings afterwards

Screenshot 2024-01-09 at 10 57 28 PM


Stack created with Sapling. Best reviewed with ReviewStack.

Ryan Holinshead added 3 commits January 9, 2024 23:03
# [editor] Handle Uploading Attachments to Public S3 Bucket

Tested in #845 -- needed to remove the policy request there for now and left a TODO to re-add
# [editor] Get Automatic Speech Recognition Working

![Screenshot 2024-01-09 at 10 25 21 PM](https://github.com/lastmile-ai/aiconfig/assets/5060851/0e6008d5-7a22-4c8e-a8c3-865d1cb9e618)


https://github.com/lastmile-ai/aiconfig/assets/5060851/fba30e0e-2160-4a84-b657-759f8689ed9e


Some fixes were needed for handling uploading attachments:
1. CORS is currently preventing policy request to lastmile endpoint from localhost; we'll need to fix this but for now we don't need the policy
2. Handling case of no attachments needed some fixes for how attachments are added to the end of the attachments array in `onAddAttachments` and we also need the default input structure to be an object to match the schema (previously was defaulting to string)
# [editor] HuggingFaceImage2TextTransformerPromptSchema

Get the input schema implemented so the input renders. Need to add model_settings afterwards

![Screenshot 2024-01-09 at 10 57 28 PM](https://github.com/lastmile-ai/aiconfig/assets/5060851/8388b478-f9f3-4654-a8e3-57a81bef7c5e)
Copy link
Contributor

@saqadri saqadri left a comment

Choose a reason for hiding this comment

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

Looks good

@rholinshead rholinshead merged commit a3b4cf7 into main Jan 10, 2024
2 checks passed
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