Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Duplicated from
gradio/hello_world
hmb
/
hello_world
like
0
Sleeping
App
Files
Files
Fetching metadata from the HF Docker repository...
b894d6c
hello_world
/
run.py
hmb
HF staff
Update run.py
502380b
verified
9 months ago
raw
Copy download link
history
blame
Safe
216 Bytes
import
gradio
as
gr
def
greet
(
name
):
return
"Hello "
+ name +
"!"
demo = gr.Interface(fn=greet, inputs=
"textbox"
, outputs=
"textbox"
)
if
__name__ ==
"__main__"
:
demo.launch(auth=(
"admin"
,
"pass123"
))