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
32.26k stars 2.41k forks source link

Custom Login Page with Standard Block Parameters #8592

Open ai-marat opened 3 months ago

ai-marat commented 3 months ago

How can we change the parameters of this textbox, the button label, etc.?

image

I think it would be nice to have something like this (I created my example in Gradio). The HTML feature in auth_message is great, but it might not be sufficient. Additionally, the inability to change label text is a problem for some non-English users. Implementing these changes allows us to make the login page UI much cleaner and more customizable. It would also be nice to add custom buttons for sign-up, contacting, etc.

image

abidlabs commented 2 months ago

Potentially a special case of: https://github.com/gradio-app/gradio/issues/2654

ai-marat commented 2 months ago

That's a good direction, but it needs more time for non-developers to figure out how it works.

In the case of the existing login feature, can we just make it look nicer by adding 'username' and 'password' as placeholders, as shown in my example? It's a very small change, but it makes the login page look nicer, in my opinion.