Search code examples
gradio

Gradio - remove the tagline


Gradio includes a tagline "built with gradio". How can I remove that?

If for some reason this option was omitted, is there a monkey patch that can do it?


Solution

  • You can access the footer via css and make it hidden:

    footer {visibility: hidden}
    

    Used in the following hello world example, makes "built with gradio" hidden.

    import gradio as gr
    
    def greet(name):
        return "Hello " + name + "!"
    
    demo = gr.Interface(
        fn=greet,
        inputs="text",
        outputs="text",
        css="footer {visibility: hidden}"
    )
    demo.launch()