RanAlh443 commited on
Commit
564a98f
·
verified ·
1 Parent(s): 0cc6f23

Update app.py

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