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

[BUG] Progress tracker doesn't display after the first iteration #31

Open
apolinario opened this issue Jun 10, 2024 · 1 comment
Open

Comments

@apolinario
Copy link

The progress tracker is not displayed once an image is already in the component and you attempt a second activity

Repro:

import gradio as gr
from gradio_imageslider import ImageSlider
from PIL import ImageFilter
import time
from tqdm import tqdm

def fn(im):
    time.sleep(4)
    return (im, im.filter(filter=ImageFilter.GaussianBlur(radius=10)))

with gr.Blocks() as demo:
    with gr.Group():
        with gr.Row():
            img2 = gr.Image(type="pil")
            img1 = ImageSlider(label="Blur image", type="pil", slider_color="pink")
    btn = gr.Button()
    btn.click(fn, inputs=img2, outputs=img1)
if __name__ == "__main__":
    demo.launch(share=True)

I realize this is because the status-wrap class actually tracking the progress just fine but is behind the image component itself. I was able to fix it in a hacky way by changing the z-index of the class status-wrap as a custom css for gradio

@innat-asj
Copy link

@apolinario Did you manage to find any workaround?

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

No branches or pull requests

2 participants