Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
SFP
/
ImCap
like
2
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
a7a9bdc
ImCap
/
app.py
SFP
Update app.py
a7a9bdc
over 1 year ago
raw
Copy download link
history
blame
Safe
227 Bytes
import
gradio
as
gr
from
PIL
import
Image
def
image_predict
(
image
):
# ... code to predict the class of the image goes here...
pass
iface = gr.Interface(fn=image_predict, inputs=
"image"
, outputs=
"label"
)
iface.launch()