Gradio bug: vote buttons remain after clicking "Synthesize" again

#42
by Pendrokar - opened

Not sure why the buttons remain interactive without a progress bar over them, as the button components are part of the outputs. (abetter, bbetter)

outputs = [text, btn, r2, model1, model2, aud1, aud2, abetter, bbetter, prevmodel1, prevmodel2, nxtroundbtn]
btn.click(synthandreturn, inputs=[text], outputs=outputs)

https://huggingface.co/spaces/TTS-AGI/TTS-Arena/blob/main/app.py#L684-L685

Perhaps some change in the updated version of Gradio.

TTS AGI org

do you mean while waiting for it to generate?

i think that's an intentional gradio decision to not add loaders to buttons, but cc @abidlabs

We don't support progress bars in buttons, but you could disable them (by setting interactive=False) and then use .then() to trigger your event, and .then() to make them interactive again

OK. Because I seem to recall even the buttons having loaders before... ๐Ÿค”

TTS AGI org

Hi, the issue has been fixed now. Thanks for letting us know!

mrfakename changed discussion status to closed

Sign up or log in to comment