File size: 244 Bytes
a5fe0a8
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
import gradio as gr

def convert_celsius_to_fahrenheit(celsius):
    fahrenheit = (float(celsius) * 9/5) + 32
    return str(fahrenheit) + "°F"

demo = gr.Interface(fn=convert_celsius_to_fahrenheit, inputs="text", outputs="text")
demo.launch()