Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
tonyassi
/
face-swap
like
585
Building
App
Files
Files
Fetching metadata from the HF Docker repository...
50af9a8
face-swap
/
app.py
tonyassi
Create app.py
50af9a8
verified
about 1 month ago
raw
Copy download link
history
blame
Safe
172 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()