html or UI display issue

#1
by H-Liu1997 - opened

hi @hysts hugging face team, thanks for your ZERO GPUs,

my project's UI displays differ than I expected, on my local, the title is centered and in correct color, but at here, it is left-aligned. they are both gradio 4.44.1

may I aks for your take a look for this if you have time.

1728578122773.jpg

Hi @H-Liu1997 In Spaces, the SDK version is specified in the README.md and the sdk_version of your Space seems to be 5.0.0. https://huggingface.co/spaces/H-Liu1997/TANGO/blob/main/README.md
The issue is due to a bug of gradio==5.0.0, which is fixed in 5.0.1, so upgrading to 5.0.1 should fix it. (Downgrading to 4.44.1 would work as well, but it would be nice to upgrade to 5.x.)

I just noticed that gr.Markdown is used here: https://huggingface.co/spaces/H-Liu1997/TANGO/blob/2ca2b26aeab2037fd8d9800e368b754b6a3c3533/app.py#L583
Not sure if this is a bug or a breaking change, but apparently, when using gradio==5.0.1 on Spaces, you need to replace it with gr.HTML to render it as expected. I'll feedback about this internally.

@hysts downgrading to 4.44.1 works for me, and yeah using gradio = 5.0.1 still has a display issue. I select to use the 4.44.1 finally, thanks for the update!

H-Liu1997 changed discussion status to closed

Sign up or log in to comment