File size: 202 Bytes
4aaf977
 
 
a873251
4aaf977
 
 
 
1
2
3
4
5
6
7
8
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()