admin管理员组

文章数量:1122846

I am using Gradio Blocks. Whenever the user sends a prompt, a spinner and a processing runtime message are shown.

There is a show_progress setting in the submit method but it allows to hide both the runtime message and the spinner. I want to show the spinner but not the runtime message.

How do I remove it? I am assuming via a CSS passed to blocks, eg

with gr.Blocks(css="<whatever that is>") as demo

What would that css be? Or if not using CSS, is there another way? Thanks!

EDIT: I've figured it out, see my answer below.

I am using Gradio Blocks. Whenever the user sends a prompt, a spinner and a processing runtime message are shown.

There is a show_progress setting in the submit method but it allows to hide both the runtime message and the spinner. I want to show the spinner but not the runtime message.

How do I remove it? I am assuming via a CSS passed to blocks, eg

with gr.Blocks(css="<whatever that is>") as demo

What would that css be? Or if not using CSS, is there another way? Thanks!

EDIT: I've figured it out, see my answer below.

Share Improve this question edited Nov 22, 2024 at 6:10 DarkBee 15.8k8 gold badges69 silver badges110 bronze badges asked Nov 22, 2024 at 2:00 Alex KayAlex Kay 2892 silver badges18 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Through trial and error I've found that this works:

gr.Blocks(css=".progress-text { display: none !important; })"

本文标签: gradioHow to hidedisable processing time messageStack Overflow