Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
rebase
/
hello_python
like
0
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
a2a27d6
hello_python
/
app.py
rebase
Update app.py
a2a27d6
about 3 years ago
Raw
Download with hf CLI
Copy download link
History
Blame
Safe
173 Bytes
import
gradio
as
gr
def
image_classifier
(
inp
):
return
{
'cat'
:
0.3
,
'dog'
:
0.7
}
demo = gr.Interface(fn=image_classifier, inputs=
"image"
, outputs=
"label"
)
demo.launch()