File size: 251 Bytes
0ab110d
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
import gradio as gr

def celsius_to_fahrenheit(celsius):
  
    fahrenheit = celsius * (9 / 5) + 32
    return str(celsius) + "C = " + str(fahrenheit) + "F"


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