Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,9 @@
|
|
| 1 |
|
| 2 |
import gradio as gr
|
| 3 |
|
| 4 |
-
def convertToF(input):
|
| 5 |
-
|
|
|
|
| 6 |
|
| 7 |
demo = gr.Interface(fn=convertToF, inputs="text", outputs="text")
|
| 8 |
demo.launch()
|
|
|
|
| 1 |
|
| 2 |
import gradio as gr
|
| 3 |
|
| 4 |
+
def convertToF(input):
|
| 5 |
+
Cels=float(input)
|
| 6 |
+
return (Cels * 9/5) + 32
|
| 7 |
|
| 8 |
demo = gr.Interface(fn=convertToF, inputs="text", outputs="text")
|
| 9 |
demo.launch()
|