| 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() |
| 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() |