test3 / app.py
Dhruv11's picture
Upload 3 files
552cdcc verified
raw
history blame contribute delete
352 Bytes
import gradio as gr
import os
def celsius_to_fahrenheit(celsius):
return celsius * 9/5 + 32
demo = gr.Interface(
fn=celsius_to_fahrenheit,
inputs=gr.Number(label="Temperature in Celsius"),
outputs=gr.Number(label="Temperature in Fahrenheit"),
title="Celsius to Fahrenheit Converter"
)
if __name__ == "__main__":
demo.launch()