Staticsho commited on
Commit
b932af1
·
1 Parent(s): 6d12513

Create App.py

Browse files
Files changed (1) hide show
  1. App.py +7 -0
App.py ADDED
@@ -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)