Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
def greet(
|
4 |
-
|
5 |
-
return 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()
|