ShahadFawaz99 commited on
Commit
cbc9feb
1 Parent(s): b0f0936

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_to_fahrenheit(celsius):
4
+
5
+ fahrenheit = celsius * 9/5 + 32
6
+ return f"{fahrenheit} °F"
7
+
8
+ demo = gr.Interface(fn=convert_to_fahrenheit, inputs="text", outputs="text")
9
+
10
+ demo.launch()