Download App.py from Staticsho/Plantbase: direct link, hf CLI and curl.
- Browser
- Download file 217 Bytes
-
https://huggingface.co/spaces/Staticsho/Plantbase/resolve/main/App.py
- Command line
-
hf download hf://spaces/Staticsho/Plantbase/App.py
-
curl -L -o App.py https://huggingface.co/spaces/Staticsho/Plantbase/resolve/main/App.py
217 Bytes
| import tensorflow as tf | |
| from transformers import pipeline | |
| import streamlit as st | |
| model = pipeline('image-classification', model='google/vit-base-patch16-224-in21k') | |
| result = model('path/to/image.jpg') | |
| print(result) | |