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...
0e6778e
Daccord
/
app.py
Docfile
Create app.py
0e6778e
over 1 year ago
raw
Copy download link
history
blame
Safe
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)