Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
saja003
/
space2
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
saja003
commited on
Aug 15, 2024
Commit
0f0ff24
·
verified
·
1 Parent(s):
2e4faba
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 greet(celsius):
4
+
fahrenheit = celsius * 9/5 + 32
5
+
return f"{celsius}°C is equal to {fahrenheit}°F"
6
+
7
+
demo = gr.Interface(fn=greet, inputs="number", outputs="text")
8
+
demo.launch()