TangYiJay commited on
Commit
dd30521
·
verified ·
1 Parent(s): cad2aa4
Files changed (1) hide show
  1. app.py +5 -0
app.py ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ # Use a pipeline as a high-level helper
2
+ from transformers import pipeline
3
+
4
+ pipe = pipeline("image-classification", model="yangy50/garbage-classification")
5
+ pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")