Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Hardware
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
MlKiller
/
bear
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
bear
/
app.py
MlKiller
Update app.py
bc81524
verified
almost 2 years ago
Raw
Download with hf CLI
Copy download link
History
Blame
Contribute
Delete
Safe
197 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()