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