Space2 / app.py
ShahadFawaz99's picture
Create app.py
cbc9feb verified
raw
history blame
223 Bytes
import gradio as gr
def convert_to_fahrenheit(celsius):
fahrenheit = celsius * 9/5 + 32
return f"{fahrenheit} °F"
demo = gr.Interface(fn=convert_to_fahrenheit, inputs="text", outputs="text")
demo.launch()