-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Add two more demos for gr.ImageEditor
#10946
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
Merged
Merged
+55
−0
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Collaborator
🪼 branch checks and previews
Install Gradio from this PR pip install https://gradio-pypi-previews.s3.amazonaws.com/7f5688f13f3fe6fe8a400e865683b0a0b96945d3/gradio-5.23.3-py3-none-any.whlInstall Gradio Python Client from this PR pip install "gradio-client @ git+https://github.com/gradio-app/gradio@7f5688f13f3fe6fe8a400e865683b0a0b96945d3#subdirectory=client/python"Install Gradio JS Client from this PR npm install https://gradio-npm-previews.s3.amazonaws.com/7f5688f13f3fe6fe8a400e865683b0a0b96945d3/gradio-client-1.14.1.tgzUse Lite from this PR <script type="module" src="https://gradio-lite-previews.s3.amazonaws.com/7f5688f13f3fe6fe8a400e865683b0a0b96945d3/dist/lite.js""></script> |
35 tasks
gr.ImageEditorgr.ImageEditor
Member
Author
|
I'm going to merge this in so that I can test with the base branch more easily |
pngwn
added a commit
that referenced
this pull request
Apr 8, 2025
* thanks o3 * add changeset * more * make events work * moreeeeeee * prettier * nb * add changeset * Update utils.py (#10773) ### Description This pull request updates the `get_node_path` function in the `gradio/utils.py` file to handle scenarios where the `which` command is missing. The function has been improved by splitting the error handling into two separate `try` blocks for better granularity and robustness. ### Changes Made - Split the `try` block into two separate `try` blocks for handling Windows and Unix-like systems. - Added error handling for `FileNotFoundError` in addition to `subprocess.CalledProcessError`. ### Rationale The original implementation did not properly handle the case when the `which` command is missing. This update ensures the function gracefully handles such scenarios and continues to check other possible locations for the `node` executable. * fix: latex rendering of markdown (#10765) * fix: latex rendering of markdown * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com> Co-authored-by: Abubakar Abid <abubakar@huggingface.co> * more * Tweak Image Editor UI (#10779) * tweak layers ui * upload alignment and text colour * change check icon * zoom tweaks * tweak layers panel * changes * more * fix image inputs * more fix * fix * fix loading layer via events * fix loading layer via events * allow developers to control layers more granularly * disable pan button when at min zoom * Update image_editor.py Co-authored-by: Abubakar Abid <abubakar@huggingface.co> * show visual indicator for outpainting region * ensure initial image values work * fix cropped image placement * fix crop intiialisation options * demos and fix brush opacity options * fix layer_options updates and add demo * more * fix webcam * fix * fix * improve color swatches * fix canvas resizing * simplify crop * fix crop yet again * rework controls * scripts * tweaks * tweaks * fix things * Add two more demos for `gr.ImageEditor` (#10946) * changes * sketchpad * changes * various fixed * generate notebooks * update changes * lockfile * format code * notebooks * tweaks * fix test * fix notebooks * changes * fix storybook * changes * interface * remove redo/undo story * fix pytest * changes * push * fiiiiiix * tweaks * fix * fix thingy * tweaks * changeset * add changeset * fix * fix * website build issue * add changeset * add layeroptions to docs * formatting * fix --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: Hannah <hannahblair@users.noreply.github.com> Co-authored-by: Pablo Speciale <pablospe@users.noreply.github.com> Co-authored-by: Col0ring <47329987+Col0ring@users.noreply.github.com> Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com> Co-authored-by: Abubakar Abid <abubakar@huggingface.co> Co-authored-by: aliabd <ali.si3luwa@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

To help test #10635