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 badges1 Answer
Reset to default 0Through trial and error I've found that this works:
gr.Blocks(css=".progress-text { display: none !important; })"
本文标签: gradioHow to hidedisable processing time messageStack Overflow
版权声明:本文标题:gradio - How to hidedisable processing time message? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736306110a1932835.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论