Assessment2 / app.py
Shahadbal's picture
Update app.py
4f325b5 verified
raw
history blame contribute delete
No virus
304 Bytes
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()