Daccord / app.py
Docfile's picture
Create app.py
0e6778e
raw
history blame
235 Bytes
import gradio as gr
def same_auth(username, password):
return username == password
def greet(name):
return "Hello " + name + "!!"
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
iface.launch(auth=same_auth)