| import gradio as gr | |
| def conversion_to_Fahrenheit(celsius): | |
| fahrenheit = celsius * 9/5 + 32 | |
| return f"{fahrenheit} F" | |
| demo = gr.Interface(fn=conversion_to_Fahrenheit, inputs="number", outputs="text") | |
| demo.launch() |
| import gradio as gr | |
| def conversion_to_Fahrenheit(celsius): | |
| fahrenheit = celsius * 9/5 + 32 | |
| return f"{fahrenheit} F" | |
| demo = gr.Interface(fn=conversion_to_Fahrenheit, inputs="number", outputs="text") | |
| demo.launch() |