Duplicated from gradio/hello_world_4
52218c3 4805bfa 52218c3 4805bfa
1
2
3
4
5
6
7
8
9
10
11
12
import gradio as gr def greet(name, intensity): return "Hi " * intensity + name + "!" demo = gr.Interface( fn=greet, inputs=["text", "slider"], outputs=["text"], ) demo.launch()