File size: 360 Bytes
c371bff
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cff4882
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import gradio as gr # type: ignore


def greet(name, intensity):
    return "Hello, " + name + "!" * int(intensity)


demo = gr.Interface(
    fn=greet,
    inputs=["text", "slider"],
    outputs=["text"],
)

demo.launch()
# demo.launch(share=True) # with public URL . # Share your demo with just 1 extra parameter


##
#gradio deploy#  to deploy in HF Spaces