Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
User-2468
/
Gradio_Test
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
e695e7c
Gradio_Test
/
app.py
User-2468
Update app.py
e695e7c
verified
4 months ago
raw
Copy download link
history
blame
Safe
215 Bytes
import
gradio
as
gr
def
greet
(
name, intensity
):
return
"Hello, "
+ name +
"!"
*
int
(intensity)
demo = gr.Interface(
fn=greet,
inputs=[
"text"
,
"slider"
],
outputs=[
"text"
],
)
demo.launch(share=
True
)