cbc9feb
1
2
3
4
5
6
7
8
9
10
import gradio as gr def convert_to_fahrenheit(celsius): fahrenheit = celsius * 9/5 + 32 return f"{fahrenheit} °F" demo = gr.Interface(fn=convert_to_fahrenheit, inputs="text", outputs="text") demo.launch()