import gradio as gr def reverse(text): return text[::-1] demo = gr.Interface(reverse, "text", "text") demo.launch(debug=True, enable_queue=False, auth=("username", "password"), auth_message="Try this")