Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
def convert_celsius_to_fahrenheit(celsius):
|
4 |
+
fahrenheit = (float(celsius) * 9/5) + 32
|
5 |
+
return str(fahrenheit) + "°F"
|
6 |
+
|
7 |
+
demo = gr.Interface(fn=convert_celsius_to_fahrenheit, inputs="text", outputs="text")
|
8 |
+
demo.launch()
|