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

Add Magic Alt Plugin #65

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

Sakib25800
Copy link
Contributor

Description

This PR adds the Magic Alt Plugin

Magic.Alt.Plugin.Demo.mov

Worker: https://github.com/Sakib25800/magic-alt-plugin-api

Testing

https://magic-alt-plugin.pages.dev

  • Generates alt text
    • Opening the plugin should display all images that do not have alt text across the project
    • Clicking generate should generate alt text for all the images (in batches)
    • All input fields should be editable after alt text generation
    • Clicking apply should apply the alt text
  • Translates alt text
    • Selecting a different language in the combobox should start loading the translation model (if it has not been loaded already)
    • Clicking translate should translate the alt text to the selected language (in batches)

Adjustments

  • The CAPTION_GENERATION_BATCH_SIZE can be increased based on the worker's CPU execution time
  • It's been set to 5 since it's the max I could get for the free tier with a 10ms execution time

Copy link

vercel bot commented Sep 29, 2024

@Sakib25800 is attempting to deploy a commit to the Framer Team on Vercel.

A member of the Team first needs to authorize it.

@Sakib25800
Copy link
Contributor Author

transformer.js v3 was recently released so I guess this plugin could be fully local now that a decent model can be run

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.

1 participant