Assessment2 / app.py
Shahadbal's picture
Update app.py
6bedc2a verified
raw
history blame
No virus
248 Bytes
import gradio as gr
#°F = °C * 9/5 + 32
def greet(input):
result = float(input)*(9/5)+32
return "The Celsius degree"+input + "is in Fahrenheit"+ result + "degree"
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
demo.launch()