Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Staticsho
/
Plantbase
like
0
No application file
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
Staticsho
commited on
Jul 9, 2023
Commit
b932af1
·
1 Parent(s):
6d12513
Create App.py
Browse files
Files changed (1)
hide
show
App.py
+7
-0
App.py
ADDED
Viewed
@@ -0,0 +1,7 @@
1
+
import tensorflow as tf
2
+
from transformers import pipeline
3
+
4
+
model = pipeline('image-classification', model='google/vit-base-patch16-224-in21k')
5
+
result = model('path/to/image.jpg')
6
+
7
+
print(result)