square_gradio / app.py
stpete2's picture
Update app.py
a2efded verified
raw
history blame contribute delete
375 Bytes
import gradio as gr
def square_number(x: float) -> float:
return x * x
demo = gr.Interface(
fn=square_number,
inputs=gr.Number(label="Enter a number"),
outputs=gr.Number(label="Square of the number"),
title="Number Squaring Calculator",
description="Enter a number and get its square value"
)
if __name__ == "__main__":
demo.launch(share=True)