File size: 180 Bytes
82d062d
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import gradio as gr

def square(x):
    return x**2

demo = gr.Interface(
    fn=square,
    inputs=gr.Number(),
    outputs=gr.Number(),
    title="My First Demo"
)

demo.launch()