Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
ayajoharji
/
Q2test
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
ayajoharji
commited on
Aug 15, 2024
Commit
e651c49
·
verified
·
1 Parent(s):
cfbffb7
Create app.py
Browse files
Files changed (1)
hide
show
app.py
+8
-0
app.py
ADDED
Viewed
@@ -0,0 +1,8 @@
1
+
import gradio as gr
2
+
3
+
def c_to_f(c):
4
+
f = c * 9/5 + 32
5
+
return f"{c} celcius is equal to {f} fehrenhite"
6
+
7
+
demo = gr.Interface(fn=c_to_f, inputs="number", outputs="text")
8
+
demo.launch()