import gradio as gr def square(x): return x*x # Create a Gradio interface gr.Interface(fn=square, inputs="number",outputs="number").launch()