Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
Patt
/
demo_gradio
like
1
Sleeping
App
Files
Files
Community
cfafb3e
demo_gradio
/
app.py
Patt
Create app.py
cfafb3e
almost 2 years ago
raw
Copy download link
history
blame
Safe
146 Bytes
import
gradio
as
gd
def
greeting
(
name
):
return
"Hello "
+ name
demo = gd.Interface(fn=greeting, inputs=
'text'
, outputs=
'text'
)
demo.launch()