import gradio as gr | |
#°F = °C * 9/5 + 32 | |
def greet(input): | |
result = float(input)*(9/5)+32 | |
return f"The Celsius degree {input} is in Fahrenheit {result} degree" | |
demo = gr.Interface(fn=greet, inputs="text", outputs="text", title="Enter Celsius degree and convert it to Fahrenheit.") | |
demo.launch() |