Assessment2 / app.py
Norahsal's picture
Update app.py
a873251 verified
raw
history blame contribute delete
202 Bytes
import gradio as gr
def c_to_f(celsius):
fahrenheit = (celsius *9/5)+32
return f"{celsius}c is = to {fahrenheit}f"
demo = gr.Interface(fn=c_to_f, inputs="number", outputs="text")
demo.launch()