import gradio as gr def calc(input): return input * 9/5 + 32 demo = gr.Interface(fn=calc, inputs="number", outputs="number") demo.launch()