demo / app.py
JetTHSu's picture
Create app.py
82d062d verified
Raw History Blame Contribute Delete
180 Bytes
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()