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...
0f0ff24
space2
/
app.py
saja003
Create app.py
0f0ff24
verified
7 months ago
raw
Copy download link
history
blame
Safe
209 Bytes
import
gradio
as
gr
def
greet
(
celsius
):
fahrenheit = celsius *
9
/
5
+
32
return
f"
{celsius}
°C is equal to
{fahrenheit}
°F"
demo = gr.Interface(fn=greet, inputs=
"number"
, outputs=
"text"
)
demo.launch()