lampongyuen commited on
Commit
876df0a
·
1 Parent(s): 345d5f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,9 +1,9 @@
1
  # https://www.gradio.app/guides/quickstart
2
  import gradio
3
 
4
- def greet(name, is_morning, temperature):
5
  salutation = "Good morning" if is_morning else "Good evening"
6
- celsius = (temperature - 32)*5/9
7
  celsius = round(celsius,2)
8
  greeting = f"{salutation} {name}. The temperate is {temperature} Fahrenheit and {celsius} degree Celsius"
9
  return greeting
 
1
  # https://www.gradio.app/guides/quickstart
2
  import gradio
3
 
4
+ def greet(name, is_morning, temperature_in_Fahrenheit):
5
  salutation = "Good morning" if is_morning else "Good evening"
6
+ celsius = (temperature_in_Fahrenheit - 32)*5/9
7
  celsius = round(celsius,2)
8
  greeting = f"{salutation} {name}. The temperate is {temperature} Fahrenheit and {celsius} degree Celsius"
9
  return greeting