import gradio as gr def c_to_f(celsius): fahrenheit = (celsius *9/5)+32 return f"{celsius}c is = to {fahrenheit}f" demo = gr.Interface(fn=c_to_f, inputs="number", outputs="text") demo.launch()