Skip to content

Conversation

@abidlabs
Copy link
Member

@abidlabs abidlabs commented Apr 4, 2025

To help test #10635

@gradio-pr-bot
Copy link
Collaborator

gradio-pr-bot commented Apr 4, 2025

🪼 branch checks and previews

Name Status URL
Spaces ready! Spaces preview
Website building...

Install Gradio from this PR

pip install https://gradio-pypi-previews.s3.amazonaws.com/7f5688f13f3fe6fe8a400e865683b0a0b96945d3/gradio-5.23.3-py3-none-any.whl

Install 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.tgz

Use Lite from this PR

<script type="module" src="https://gradio-lite-previews.s3.amazonaws.com/7f5688f13f3fe6fe8a400e865683b0a0b96945d3/dist/lite.js""></script>

@abidlabs abidlabs changed the title Add more demos for gr.ImageEditor Add two more demos for gr.ImageEditor Apr 4, 2025
@abidlabs abidlabs marked this pull request as ready for review April 4, 2025 06:18
@abidlabs abidlabs requested a review from pngwn April 4, 2025 06:19
@abidlabs
Copy link
Member Author

abidlabs commented Apr 4, 2025

I'm going to merge this in so that I can test with the base branch more easily

@abidlabs abidlabs merged commit 357d5ab into image-editor-rewrite Apr 4, 2025
10 of 13 checks passed
@abidlabs abidlabs deleted the image-editor-demos branch April 4, 2025 20:35
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants