File size: 159 Bytes
fe30e0b
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
import gradio as gr

def square(x):
  return x*x 

 # Create a Gradio interface
iface=gr.Interface(fn=square, inputs="number",outputs="number")
iface.launch()