Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
def convert_celsius_to_fahrenheit(celsius):
|
4 |
+
|
5 |
+
fahrenheit = celsius * 9 / 5 + 32
|
6 |
+
return f"{celsius}°C is equal to {fahrenheit}°F"
|
7 |
+
|
8 |
+
|
9 |
+
demo = gr.Interface(fn=convert_celsius_to_fahrenheit, inputs="number", outputs="text")
|
10 |
+
demo.launch()
|