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

Fix multimodal textbox custom components #8719

Merged
merged 4 commits into from
Jul 10, 2024
Merged

Conversation

freddyaboulton
Copy link
Collaborator

Description

Closes: #8718

🎯 PRs Should Target Issues

Before your create a PR, please check to see if there is an existing issue for this change. If not, please create an issue before you create this PR, unless the fix is very small.

Not adhering to this guideline will result in the PR being closed.

Tests

  1. PRs will only be merged if tests pass on CI. To run the tests locally, please set up your Gradio environment locally and run the tests: bash scripts/run_all_tests.sh

  2. You may need to run the linters: bash scripts/format_backend.sh and bash scripts/format_frontend.sh

@gradio-pr-bot
Copy link
Collaborator

gradio-pr-bot commented Jul 8, 2024

🪼 branch checks and previews

Name Status URL
Spaces ready! Spaces preview
Website ready! Website preview
🦄 Changes detected! Details

Install Gradio from this PR

pip install https://gradio-builds.s3.amazonaws.com/bc749dd498052185b9ac288171a06509ae5d879c/gradio-4.37.2-py3-none-any.whl

Install Gradio Python Client from this PR

pip install "gradio-client @ git+https://github.com/gradio-app/gradio@bc749dd498052185b9ac288171a06509ae5d879c#subdirectory=client/python"

Install Gradio JS Client from this PR

npm install https://gradio-builds.s3.amazonaws.com/bc749dd498052185b9ac288171a06509ae5d879c/gradio-client-1.2.1.tgz

@gradio-pr-bot
Copy link
Collaborator

gradio-pr-bot commented Jul 8, 2024

🦄 change detected

This Pull Request includes changes to the following packages.

Package Version
gradio patch
  • Maintainers can select this checkbox to manually select packages to update.

With the following changelog entry.

Fix multimodal textbox custom components

Maintainers or the PR author can modify the PR title to modify this entry.

Something isn't right?

  • Maintainers can change the version label to modify the version bump.
  • If the bot has failed to detect any changes, or if this pull request needs to update multiple packages to different versions or requires a more comprehensive changelog entry, maintainers can update the changelog file directly.

@freddyaboulton freddyaboulton marked this pull request as ready for review July 8, 2024 17:17
@freddyaboulton freddyaboulton requested a review from pngwn July 8, 2024 17:30
@abidlabs
Copy link
Member

abidlabs commented Jul 8, 2024

Thanks @freddyaboulton! Could we add a test to ensure that all of our core components can be used as templates for custom components? Would be helpful as we add new components (e.g. TimeRange)

@freddyaboulton
Copy link
Collaborator Author

Modified the tests @abidlabs ! Thanks for the suggestion

"""When you add a new component this test will likely fail locally
because the js files have not been moved to the _frontend_code directory.

Just build the python package to move the latest state of the js directory to _frontend_code.
Copy link
Member

Choose a reason for hiding this comment

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

What does "build the python package" mean? Do you mean build the frontend?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Need to build the wheel so that a script to copy the js files gets run. Let me update comment!

Copy link
Member

@abidlabs abidlabs left a comment

Choose a reason for hiding this comment

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

lgtm thanks for updating the test @freddyaboulton! just one question above

@freddyaboulton freddyaboulton merged commit d15ada9 into main Jul 10, 2024
7 checks passed
@freddyaboulton freddyaboulton deleted the multimodal_textbox-cc branch July 10, 2024 11:09
@pngwn pngwn mentioned this pull request Jul 10, 2024
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.

Cannot do custom component with MultimodalTextbox
3 participants