Lubna25 commited on
Commit
a5fe0a8
1 Parent(s): 187bf9a

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def convert_celsius_to_fahrenheit(celsius):
4
+ fahrenheit = (float(celsius) * 9/5) + 32
5
+ return str(fahrenheit) + "°F"
6
+
7
+ demo = gr.Interface(fn=convert_celsius_to_fahrenheit, inputs="text", outputs="text")
8
+ demo.launch()