Spaces:
Sleeping
Sleeping
razanalsulami
commited on
Commit
•
0ab110d
1
Parent(s):
ea3c856
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
def celsius_to_fahrenheit(celsius):
|
4 |
+
|
5 |
+
fahrenheit = celsius * (9 / 5) + 32
|
6 |
+
return str(celsius) + "C = " + str(fahrenheit) + "F"
|
7 |
+
|
8 |
+
|
9 |
+
demo = gr.Interface(fn=celsius_to_fahrenheit, inputs="number", outputs="text")
|
10 |
+
demo.launch()
|