How can I implement logout functionality in Gradio?

Hello everyone,

I hope you鈥檙e all doing well. I have a question regarding the Gradio library鈥檚 functionality, specifically related to implementing a logout feature. Currently, I鈥檓 using the library鈥檚 login feature with the following code example:

demo.launch(auth=("username", "password"))

This serves as an example for the login functionality. However, I鈥檓 interested in incorporating a logout feature as well. I鈥檓 wondering how I can go about implementing this in my Gradio application. Any guidance or code examples on how to achieve this would be greatly appreciated.

Thank you in advance for your assistance!

Best regards,

Hi @Buddies, we don鈥檛 currently support this, but we are working on it. Please follow this issue: Request for Adding Logout Functionality 路 Issue #5163 路 gradio-app/gradio 路 GitHub