File size: 342 Bytes
e7a9287
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import gradio as gr

# my_function() = interface
def interface(name, intensity):
	return "Hello, " + name + "!" * int(intensity)

# Create Interface Gradio
demo = gr.Interface(
	fn = interface,
	inputs = ["text", "slider"],
	outputs = ["text"],
)

# Launch the interface
demo.launch(share = True) # Share your demo with just 1 extra parameter