File size: 239 Bytes
0e6778e
 
 
 
 
 
 
 
9b396fc
0e6778e
1
2
3
4
5
6
7
8
9
10
import gradio as gr

def same_auth(username, password):
    return username == password
    
def greet(name):
    return "Hello " + name + "!!"

iface = gr.Interface(fn=same_auth, inputs="text", outputs="text")
iface.launch(auth=same_auth)