Skip to content

Conversation

@abidlabs
Copy link
Member

@abidlabs abidlabs commented Dec 17, 2025

Test with:

import gradio as gr
import time

def slow(x):
    time.sleep(2)
    return "<p style='background-color:gray; height:400px'></p>"

gr.Interface(slow, "textbox", gr.HTML("<p style='background-color:green; height:400px'></p>"), show_progress="hidden").launch()

Closes: #12581

@abidlabs abidlabs marked this pull request as ready for review December 17, 2025 21:15
@gradio-pr-bot
Copy link
Collaborator

gradio-pr-bot commented Dec 17, 2025

🪼 branch checks and previews

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

Install Gradio from this PR

pip install https://gradio-pypi-previews.s3.amazonaws.com/145af9b7b5cd48938606aa979e91a205a9767319/gradio-6.1.0-py3-none-any.whl

Install Gradio Python Client from this PR

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

Install Gradio JS Client from this PR

npm install https://gradio-npm-previews.s3.amazonaws.com/145af9b7b5cd48938606aa979e91a205a9767319/gradio-client-2.0.0.tgz

@gradio-pr-bot
Copy link
Collaborator

🦄 change detected

This Pull Request includes changes to the following packages.

Package Version
@gradio/html patch
gradio patch

  • Fix issue with HTML status shading even when "show_progress='hidden'"

‼️ Changeset not approved. Ensure the version bump is appropriate for all packages before approving.

  • Maintainers can approve the changeset by checking this checkbox.

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.

Copy link
Collaborator

@freddyaboulton freddyaboulton left a comment

Choose a reason for hiding this comment

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

Nice fix @abidlabs !

@abidlabs abidlabs merged commit cf27938 into main Dec 17, 2025
19 of 20 checks passed
@abidlabs abidlabs deleted the html-status branch December 17, 2025 21:47
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.

gr.HTML becomes shaded gray during an event where it is an output component and there's no way to disable that

4 participants