Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
def c_to_f(celsius):
|
4 |
-
fahrenheit = (celsius *
|
5 |
return f"{celsius}c is = to {fahrenheit}f"
|
6 |
|
7 |
demo = gr.Interface(fn=c_to_f, inputs="number", outputs="text")
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
def c_to_f(celsius):
|
4 |
+
fahrenheit = (celsius *9/5)+32
|
5 |
return f"{celsius}c is = to {fahrenheit}f"
|
6 |
|
7 |
demo = gr.Interface(fn=c_to_f, inputs="number", outputs="text")
|