Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Docfile
/
Daccord
like
0
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
9b396fc
Daccord
/
app.py
Docfile
Update app.py
9b396fc
over 1 year ago
raw
Copy download link
history
blame
Safe
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)