saja003 commited on
Commit
0f0ff24
·
verified ·
1 Parent(s): 2e4faba

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