Spaces:
Build error
Build error
1111
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import gradio as gr
|
|
| 2 |
|
| 3 |
# Sample Gradio usage
|
| 4 |
def greet(name, is_morning, temperature):
|
| 5 |
-
salutation = "Good morning" if is_morning else "Good evening"
|
| 6 |
greeting = f"{salutation} {name}. It is {temperature} degrees today"
|
| 7 |
celsius = (temperature - 32) * 5 / 9
|
| 8 |
return greeting, round(celsius, 2)
|
|
|
|
| 2 |
|
| 3 |
# Sample Gradio usage
|
| 4 |
def greet(name, is_morning, temperature):
|
| 5 |
+
salutation = "Good morning" if is_morning else "Good evening"#sssss
|
| 6 |
greeting = f"{salutation} {name}. It is {temperature} degrees today"
|
| 7 |
celsius = (temperature - 32) * 5 / 9
|
| 8 |
return greeting, round(celsius, 2)
|