RakanAlsheraiwi commited on
Commit
cd1c56b
·
verified ·
1 Parent(s): defb35d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -1,6 +1,8 @@
1
  import gradio as gr
2
 
3
- def greet(input):
4
- return input * 9/2 +32
5
- demo = gr.Interface(fn=greet, inputs="text", outputs="text")
6
- demo.launch()
 
 
 
1
  import gradio as gr
2
 
3
+ def celsius_to_fahrenheit(celsius):
4
+
5
+ return celsius * 9/5 + 32
6
+
7
+ demo = gr.Interface(fn=celsius_to_fahrenheit, inputs="number", outputs="text")
8
+ demo.launch()