Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import gradio as gr
|
|
| 2 |
#°F = °C * 9/5 + 32
|
| 3 |
def greet(input):
|
| 4 |
result = float(input)*(9/5)+32
|
| 5 |
-
return "The Celsius degree
|
| 6 |
|
| 7 |
-
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 8 |
demo.launch()
|
|
|
|
| 2 |
#°F = °C * 9/5 + 32
|
| 3 |
def greet(input):
|
| 4 |
result = float(input)*(9/5)+32
|
| 5 |
+
return f"The Celsius degree {input} is in Fahrenheit {result} degree"
|
| 6 |
|
| 7 |
+
demo = gr.Interface(fn=greet, inputs="text", outputs="text", title="Enter Celsius degree and convert it to Fahrenheit.")
|
| 8 |
demo.launch()
|