MAJED94760 commited on
Commit
c288f89
1 Parent(s): c1fd816

Create app.py

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