import gradio as gr def fah (cel): fah=cel*9/5+23 return "fahrenheit: " + fah + "f" demo = gr.Interface(fn=fah, inputs="text", outputs="text") demo.launch()