project2 / app.py
Lubna25's picture
Create app.py
a5fe0a8 verified
raw
history blame contribute delete
244 Bytes
import gradio as gr
def convert_celsius_to_fahrenheit(celsius):
fahrenheit = (float(celsius) * 9/5) + 32
return str(fahrenheit) + "°F"
demo = gr.Interface(fn=convert_celsius_to_fahrenheit, inputs="text", outputs="text")
demo.launch()