Nojoodalnahdi
commited on
Commit
•
419c957
1
Parent(s):
115d41d
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
def fah (cel):
|
|
|
4 |
fah=cel*9/5+23
|
5 |
-
return "fahrenheit: " + fah + "f"
|
6 |
|
7 |
demo = gr.Interface(fn=fah, inputs="text", outputs="text")
|
8 |
-
demo.launch()
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
def fah (cel):
|
4 |
+
cel=float(cel)
|
5 |
fah=cel*9/5+23
|
6 |
+
return "fahrenheit: " + str(fah) + "f"
|
7 |
|
8 |
demo = gr.Interface(fn=fah, inputs="text", outputs="text")
|
9 |
+
demo.launch()
|