-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[Gradio 5] - Gallery with two "X" close button #9956
Comments
This has been fixed on main @elismasilva ! |
@freddyaboulton ok i wait for next release because if i install from main i need do contribution guide steps, has any way to install from main and run like is installed from pip? i getting error "ValueError: Did you install Gradio from source files? You need to build the frontend by running /scripts/build_frontend.sh" but i already run this script, so i will not wast time with this, this is a little bug. |
@elismasilva - you can go to the
|
hi @freddyaboulton , ive installed from this PR gradio client and gradio app, but the issue persists. Ive uninstalled previous versios, re-created new venv and have this: and if i close image on "X" behind, the image remain aligned to the right, not centered: |
@abidlabs @freddyaboulton is it necessary to open this bug again, I installed gradio 5.6.0 and the bug is present, or do I need to open a new bug again? |
@elismasilva - can you share a full reproducer? I can't reproduce on spaces: https://huggingface.co/spaces/gradio/fake_gan |
Hi @freddyaboulton, I discovered that the problem only occurs if I use the gallery in interactive mode when it is used as an Image component allowing you to upload an image it seems that the behavior of the two components merge and generate this conflict. See in my space I enabled the option for you to be able to specify an image for the gallery, if you specify an image or click on the generated images the additional "X" will appear. https://huggingface.co/spaces/elismasilva/fake_gan in my reproduction code provided here in this issue you can se the problem too. Normally people wouldn't use the gallery for this purpose, but in my scenario I use it because I can reuse the interface for both purposes since I expect the user to be able to upload an existing image to the gallery to see the image's metadata. |
Thank you for the detailed response and reproducer @elismasilva ! |
Describe the bug
I have noticed that the gallery in the latest version of Gradio is showing 2 buttons to close the gallery image, and the button on top is interfering with the selection of the buttons below. This happens when I am in preview mode, either starting in preview mode or after clicking on the image to preview.
Have you searched existing issues? 🔎
Reproduction
Screenshot
Logs
System Info
Severity
I can work around it
The text was updated successfully, but these errors were encountered: