Daccord / app.py
Docfile's picture
Update app.py
9b396fc
raw
history blame
239 Bytes
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)