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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,8 +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()
 
1
  import gradio as gr
2
 
3
+ def greet(c):
4
+ f = c * 9/5 + 32
5
+ return f"{c}°C is equal to {f}°F"
6
 
7
  demo = gr.Interface(fn=greet, inputs="number", outputs="text")
8
  demo.launch()