gradio-app / gradio

Build and share delightful machine learning apps, all in Python. 🌟 Star to support our work!
http://www.gradio.app
Apache License 2.0
33.38k stars 2.52k forks source link

Component info font size not smaller in v5 #9642

Open tbitai opened 1 week ago

tbitai commented 1 week ago

Describe the bug

Component info should be displayed in smaller font – see e.g. the Textbox docs:

info: str | None

default = None

additional component description, appears below the label in smaller font. Supports markdown / HTML syntax.

In v5, that's not the behavior anymore.

Have you searched existing issues? 🔎

Reproduction

import gradio as gr

demo = gr.Interface(
    fn=lambda text: text,
    inputs=[gr.Textbox(label="Text", 
                       info="Text to ouput. Should be in smaller font.")],
    outputs=["text"],
)
demo.launch()

Screenshot

image

Logs

No response

System Info

>>> gr.__version__
'5.0.1'

Severity

I can work around it

tbitai commented 1 week ago

The workaround I used is to wrap my info strings in a <small> element, leveraging the new HTML support.

dawoodkhan82 commented 1 week ago

Will fix, thanks for reporting.