Spaces:
Runtime error
Runtime error
Download app.py from olive100/image-classification: direct link, hf CLI and curl.
- Browser
- Download file 369 Bytes
-
https://huggingface.co/spaces/olive100/image-classification/resolve/main/app.py
- Command line
-
hf download hf://spaces/olive100/image-classification/app.py
-
curl -L -o app.py https://huggingface.co/spaces/olive100/image-classification/resolve/main/app.py
369 Bytes
| import gradio as gr | |
| from skimage import data | |
| from PIL import Image | |
| Image.fromarray(data.cat()).save('cat.jpeg') | |
| Image.fromarray(data.astronaut()).save('people.jpeg') | |
| Image.fromarray(data.coffee()).save('coffee.jpeg') | |
| gr.Interface.load( | |
| "huggingface/google/vit-base-patch16-224", | |
| examples=["cat.jpeg", "coffee.jpeg", "people.jpeg"]).launch() | |