Spaces:
Sleeping
Sleeping
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() |